This repository has been archived by the owner. It is now read-only.
Drop-in graceful hot restarting of net/http servers
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
server.go

README.md

mannersagain

Package mannersagain combines manners and goagain to provide graceful hot restarting of net/http servers.

To use it, just replace your call to http.ListenAndServe with a call to mannersagain.ListenAndServe. When you send SIGUSR2 to the process, it will pass the listener to a new process and exit gracefully. When you send SIGQUIT to the process it will exit gracefully.

mannersagain supports both of the Single and Double strategies that goagain provides, set goagain.Strategy before calling ListenAndServe to change the default.