-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gracefully shutdown HTTP, gRPC, and Prom servers (#1342)
* Gracefully shutdown HTTP, gRPC, and Prom servers This catches sigint and sigterm and calls each server's shutdown method, blocking until shutdown completes. This is only added for non-Duplex, we'll need to add a shutdown method for Duplex servers. Signed-off-by: Hayden Blauzvern <[email protected]> * Fix linter Signed-off-by: Hayden Blauzvern <[email protected]> * Log fatal on ListenAndServe error, make domain socket configurable Signed-off-by: Hayden Blauzvern <[email protected]> --------- Signed-off-by: Hayden Blauzvern <[email protected]>
- Loading branch information
1 parent
c9a6c25
commit e91bd33
Showing
4 changed files
with
91 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters