caddy/caddytest/integration
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
..
caddyfile_adapt caddyhttp: Add 'skip_log' var to omit request from logs (#4691) 2022-09-15 10:05:36 -06:00
testdata staticfiles: Expand placeholder for index files (#4679) 2022-04-07 15:01:09 -06:00
autohttps_test.go caddyhttp: Fix edgecase with auto HTTP->HTTPS logic (#4243) 2021-07-14 10:49:34 -06:00
caddyfile_adapt_test.go Move from deprecated ioutil to os and io packages (#4364) 2021-09-29 11:17:48 -06:00
caddyfile_test.go caddyhttp: Honor grace period in background (#5043) 2022-09-19 21:54:47 -06:00
handler_test.go caddyhttp: Honor grace period in background (#5043) 2022-09-19 21:54:47 -06:00
map_test.go caddyhttp: Honor grace period in background (#5043) 2022-09-19 21:54:47 -06:00
reverseproxy_test.go caddyhttp: Honor grace period in background (#5043) 2022-09-19 21:54:47 -06:00
sni_test.go caddyhttp: Honor grace period in background (#5043) 2022-09-19 21:54:47 -06:00
stream_test.go caddyhttp: Honor grace period in background (#5043) 2022-09-19 21:54:47 -06:00