Skip to content

feat: add graceful shutdown using signals#11

Open
tombojer wants to merge 1 commit intogoogle:mainfrom
tombojer:main
Open

feat: add graceful shutdown using signals#11
tombojer wants to merge 1 commit intogoogle:mainfrom
tombojer:main

Conversation

@tombojer
Copy link

This PR changes the shutdown behavior to include a graceful shutdown with a default shutdown timeout of 10 seconds.
Additionally a custom shutdown timeout can be set per endpoint.
With the changes we can be sure that all in flight messages are handled.

The spawned http servers are stopped on os.Interrupt, syscall.SIGTERM, syscall.SIGQUIT, syscall.SIGKILL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant