Skip to content
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

Fix graceful shutdown for Http(1|2)Builder #92

Closed
wants to merge 1 commit into from

Conversation

k0nserv
Copy link

@k0nserv k0nserv commented Jan 16, 2024

Because Http1Builder::serve_connection and
Http2Builder::serve_connection didn't return Connection it was
impossible to use them in combination with Connection::graceful_shutdown.

By returning the Connection future rather than awaiting it, this becomes
possible.

Because `Http1Builder::serve_connection` and
`Http2Builder::serve_connection` didn't return `Connection` it was
impossible to use them in combination with `Connection::graceful_shutdown`.

By returning the Connection future rather than awaiting it, this becomes
possible.
@seanmonstar
Copy link
Member

This was done in another PR.

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.

2 participants