1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-16 21:56:40 -05:00
caddy/modules
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
..
caddyevents events: Make event data exported 2022-09-19 16:20:58 -06:00
caddyhttp caddyhttp: Honor grace period in background (#5043) 2022-09-19 21:54:47 -06:00
caddypki core: Variadic Context.Logger(); soft deprecation 2022-09-16 16:55:36 -06:00
caddytls core: Variadic Context.Logger(); soft deprecation 2022-09-16 16:55:36 -06:00
filestorage httpcaddyfile: Minor fixes to parsing storage options 2020-05-01 09:34:32 -06:00
logging logging: Fix cookie filter (#4943) 2022-08-08 19:11:02 -06:00
metrics core: Variadic Context.Logger(); soft deprecation 2022-09-16 16:55:36 -06:00
standard events: Implement event system (#4912) 2022-08-31 15:01:30 -06:00