htpack/cmd/packserver
Laurence Withers 5398dddb02 Add --graceful-shutdown-delay
This option allows a configurable delay after receiving SIGTERM (or
SIGINT) but before the HTTP server stops accepting new connections. It
is quite useful for distributed systems where callers are only notified
asynchronously (e.g. via service discovery) that a service is being shut
down; it prevents the shut down from occurring prior to callers
processing the notification.

This required some minor refactoring to allow the Shutdown() method on
http.Server to be accessed.
2022-11-26 10:43:18 +00:00
..
go.mod cmd/packserver: update to Go 1.19, update dependencies 2022-11-26 10:14:25 +00:00
go.sum cmd/packserver: update to Go 1.19, update dependencies 2022-11-26 10:14:25 +00:00
main.go Add --graceful-shutdown-delay 2022-11-26 10:43:18 +00:00