caddy/modules/caddyhttp
Matt Holt da8b7fe58f
caddyhttp: Honor grace period in background (#5043)
* caddyhttp: Honor grace period in background

This avoids blocking during config reloads.

* Don't quit process until servers shut down

* Make tests more likely to pass on fast CI (#5045)

* caddyhttp: Even faster shutdowns

Simultaneously shut down all HTTP servers, rather than one at a time.

In practice there usually won't be more than 1 that lingers. But this
code ensures that they all Shutdown() in their own goroutine
and then we wait for them at the end (if exiting).

We also wait for them to start up so we can be fairly confident the
shutdowns have begun; i.e. old servers no longer
accepting new connections.

* Fix comment typo

* Pull functions out of loop, for readability
2022-09-19 21:54:47 -06:00
..
caddyauth core: Variadic Context.Logger(); soft deprecation 2022-09-16 16:55:36 -06:00
encode encode: Fix Accept-Ranges header; HEAD requests (#5039) 2022-09-15 16:05:08 -06:00
fileserver core: Variadic Context.Logger(); soft deprecation 2022-09-16 16:55:36 -06:00
headers
map map: Coerce val to string, fix #4987 2022-09-01 21:15:44 -06:00
push core: Variadic Context.Logger(); soft deprecation 2022-09-16 16:55:36 -06:00
requestbody
reverseproxy core: Variadic Context.Logger(); soft deprecation 2022-09-16 16:55:36 -06:00
rewrite core: Variadic Context.Logger(); soft deprecation 2022-09-16 16:55:36 -06:00
standard
templates templates: Document `httpError` function (#4972) 2022-09-01 22:07:52 -06:00
tracing core: Variadic Context.Logger(); soft deprecation 2022-09-16 16:55:36 -06:00
app.go caddyhttp: Honor grace period in background (#5043) 2022-09-19 21:54:47 -06:00
autohttps.go Minor style adjustments for HTTP redir logging 2022-09-02 13:04:31 -06:00
caddyhttp.go caddyhttp: Smarter path matching and rewriting (#4948) 2022-08-16 08:48:57 -06:00
caddyhttp_test.go caddyhttp: Smarter path matching and rewriting (#4948) 2022-08-16 08:48:57 -06:00
celmatcher.go core: Variadic Context.Logger(); soft deprecation 2022-09-16 16:55:36 -06:00
celmatcher_test.go
errors.go
httpredirectlistener.go
logging.go caddyhttp: Add 'skip_log' var to omit request from logs (#4691) 2022-09-15 10:05:36 -06:00
marshalers.go
matchers.go core: Variadic Context.Logger(); soft deprecation 2022-09-16 16:55:36 -06:00
matchers_test.go caddyhttp: Smarter path matching and rewriting (#4948) 2022-08-16 08:48:57 -06:00
metrics.go caddyhttp: Make metrics opt-in (#5042) 2022-09-16 13:32:49 -06:00
metrics_test.go
replacer.go fileserver: Support glob expansion in file matcher (#4993) 2022-09-05 13:53:41 -06:00
replacer_test.go fileserver: Support glob expansion in file matcher (#4993) 2022-09-05 13:53:41 -06:00
responsematchers.go
responsematchers_test.go
responsewriter.go caddyhttp: responseRecorder save status in all cases (#5049) 2022-09-17 18:47:53 -06:00
responsewriter_test.go caddyhttp: ensure ResponseWriterWrapper and ResponseRecorder use ReadFrom if the underlying response writer implements it. (#5022) 2022-09-07 21:13:35 +01:00
routes.go caddyhttp: Make metrics opt-in (#5042) 2022-09-16 13:32:49 -06:00
server.go caddyhttp: Support configuring Server from handler provisioning (#4933) 2022-09-16 14:48:55 -06:00
staticerror.go
staticresp.go caddyhttp: Add --debug flag to commands 2022-09-15 23:10:16 -06:00
staticresp_test.go
subroute.go
vars.go caddyhttp: Accept placeholders in vars matcher key 2022-09-01 16:49:18 -06:00