-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graceful shutdown with hyper 1.0 #2323
Comments
This is something that should go in https://github.com/hyperium/hyper-util and not axum. axum doesn't know anything about the underlying transport layer so it can't implement graceful shutdown. Have a look through hyper's issues. There might already be one, otherwise you can file a new one. Note that axum doesn't yet support hyper 1.0 at all. |
I'm tracking #1882. As
That would make sense, thanks. |
The purpose of |
Feature Request
Motivation
with_graceful_shutdown
has been removed in hyper 1.0, not there's no convenient way to do this withaxum::serve
.Proposal
Adds a
with_graceful_shutdown
to axum.Alternatives
Provide an example to use
hyper
connections directly: hyperium/hyper#3303The text was updated successfully, but these errors were encountered: