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(http1): http1 server graceful shutdown fix #3261

Merged
merged 1 commit into from
Jul 6, 2023
Merged

Conversation

seanmonstar
Copy link
Member

This is from #3233, I've fixed up the failing test.


fix issue in the graceful shutdown logic
which causes the connection future to hang
when graceful shutdown is called prior to any
requests being made. This fix checks to see
if the connection is still in its initial state
when disable_keep_alive is called, and starts the
shutdown process if it is.

Closes #2730

fix issue in the graceful shutdown logic
which causes the connection future to hang
when graceful shutdown is called prior to any
requests being  made. This fix checks to see
if the connection is still in its initial state
when disable_keep_alive is called, and starts the
shutdown process if it is.

This addresses issue #2730
@djc
Copy link
Contributor

djc commented Sep 12, 2023

@seanmonstar could we get a release with this, please?

@seanmonstar
Copy link
Member Author

This was included in RC4.

@seanmonstar
Copy link
Member Author

If you mean for 0.14.x, it seemed like a behavior change and was marked as a breaking change. I've forgotten the argument for why. I don't feel strongly, unless it would be break expected behavior.

@djc
Copy link
Contributor

djc commented Sep 12, 2023

From a brief look at the changes and the PR description, it's not obvious to me why this should be a breaking change.

0xE282B0 pushed a commit to 0xE282B0/hyper that referenced this pull request Jan 12, 2024
fix issue in the graceful shutdown logic
which causes the connection future to hang
when graceful shutdown is called prior to any
requests being  made. This fix checks to see
if the connection is still in its initial state
when disable_keep_alive is called, and starts the
shutdown process if it is.

This addresses issue hyperium#2730

Co-authored-by: Robin Seitz <[email protected]>
0xE282B0 pushed a commit to 0xE282B0/hyper that referenced this pull request Jan 16, 2024
fix issue in the graceful shutdown logic
which causes the connection future to hang
when graceful shutdown is called prior to any
requests being  made. This fix checks to see
if the connection is still in its initial state
when disable_keep_alive is called, and starts the
shutdown process if it is.

This addresses issue hyperium#2730

Co-authored-by: Robin Seitz <[email protected]>
Signed-off-by: Sven Pfennig <[email protected]>
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.

Connection::graceful_shutdown always waits for the first request.
2 participants