summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/headers
diff options
context:
space:
mode:
authorMatt Holt <mholt@users.noreply.github.com>2022-09-19 21:54:47 -0600
committerGitHub <noreply@github.com>2022-09-19 21:54:47 -0600
commitda8b7fe58f83012d9a6c6e15cb249ca5f476597c (patch)
treefd15a80875747238aee50d8947b800aa9f7bb945 /modules/caddyhttp/headers
parent0950ba4f0b77f2a9134188386345fccdfddb80ad (diff)
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
Diffstat (limited to 'modules/caddyhttp/headers')
0 files changed, 0 insertions, 0 deletions