caddy/caddyhttp
Augusto Roman 463c9d9dd2 Fix data race for max connection limiting in proxy directive. (#1438)
* Fix data race for max connection limiting in proxy directive.

The Conns and Unhealthy fields are updated concurrently across all active
requests.  Because of this, they must use atomic operations for reads and
writes.

Prior to this change, Conns was incremented atomically, but read unsafely.
Unhealthly was updated & read unsafely.  The new test
TestReverseProxyMaxConnLimit exposes this race when run with -race.

Switching to atomic operations makes the race detector happy.

* oops, remove leftover dead code.
2017-02-15 08:09:42 -07:00
..
basicauth basicauth: Remove Authorization header on successful authz (issue #1324) 2017-01-03 17:47:27 -07:00
bind Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
browse browse: Sanitize file names and links in default template 2017-01-23 22:37:46 -07:00
errors Roll all logs by default (#1379) 2017-02-08 09:23:33 -07:00
expvar Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
extensions Fix misspellings 2016-09-05 10:20:34 -06:00
fastcgi Add root option to fastcgi directive (#1337) 2017-01-17 10:34:17 -07:00
gzip Add misspell to travis build 2017-01-10 15:39:00 -08:00
header Fix for #1164 - allow only one header per line (#1280) 2016-11-29 21:24:12 -07:00
httpserver Merge pull request #1425 from jung-kurt/cgi 2017-02-14 06:59:32 -07:00
internalsrv Feature #1246 - Remote syslog (#1301) 2017-02-08 08:02:09 -07:00
log Roll all logs by default (#1379) 2017-02-08 09:23:33 -07:00
markdown Feature #1246 - Remote syslog (#1301) 2017-02-08 08:02:09 -07:00
maxrequestbody Add maxrequestbody directive (#1163) 2016-11-04 08:25:49 +08:00
mime Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
pprof pprof: Set proper Content-Type header 2017-01-24 16:55:43 -07:00
proxy Fix data race for max connection limiting in proxy directive. (#1438) 2017-02-15 08:09:42 -07:00
redirect Replace magic number 308 with http.StatusPermanentRedirect 2017-02-07 23:55:36 +00:00
rewrite Introduce new Replacer fields {rewrite_path}, {rewrite_path_escaped}; issue #1185 (#1364) 2017-01-23 22:15:27 -07:00
root Ensure active Caddyfile, if in site, is hidden no matter the cwd 2017-01-23 22:06:29 -07:00
staticfiles Feature #1282 - Support serving statically compressed .gz and .br files (#1289) 2016-12-19 09:51:09 -07:00
status Add 'status' middleware instead of 'status' directive for 'rewrite' middleware 2016-08-29 17:17:23 +03:00
templates Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
timeouts New 'timeouts' directive to configure timeouts; default timeouts enabled (#1368) 2017-01-24 08:15:25 -07:00
websocket Fix misspellings 2016-09-05 10:20:34 -06:00
caddyhttp.go New 'timeouts' directive to configure timeouts; default timeouts enabled (#1368) 2017-01-24 08:15:25 -07:00
caddyhttp_test.go New 'timeouts' directive to configure timeouts; default timeouts enabled (#1368) 2017-01-24 08:15:25 -07:00