Skip to content

connection: terminate after goaway #17884

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

icing
Copy link
Contributor

@icing icing commented Jul 10, 2025

When a multiplex connection (h2/h3) is shutdown by the server, the reported number of parallel transfers allowed drops to 0.

Determine that when the last transfer is done and terminate the connection instead of keeping it in the cache.

We detect the drop to 0 also when we try to reuse such a connection, but if we know this at the time the last transfer is done, we better terminate it right away.

Have a consistent trace logging to this with the connections current hostname and port. Adjust test expectations to carry port numbers.

@github-actions github-actions bot added the tests label Jul 10, 2025
@icing icing added HTTP/2 feature-window A merge of this requires an open feature window HTTP/3 h3 or quic related and removed tests labels Jul 10, 2025
@icing
Copy link
Contributor Author

icing commented Jul 10, 2025

CI failures addressed in #17885

Update: fixed by restoring the original way of determining hostname of connection

Update: rebased for merged fixes

@github-actions github-actions bot added the tests label Jul 10, 2025
@curl curl deleted a comment from testclutch Jul 10, 2025
icing added 2 commits July 11, 2025 11:14
When a multiplex connection (h2/h3) is shutdown by the server,
the reported number of parallel transfers allowed drops to 0.

Determine that when the last transfer is done and terminate the
connection instead of keeping it in the cache.

We detect the drop to 0 also when we try to reuse such a connection,
but if we know this at the time the last transfer is done, we better
terminate it right away.

Have a consistent trace logging to this with the connections current
hostname and port. Adjust test expectations to carry port numbers.
@icing icing force-pushed the conn-goaway-terminate branch from 70b8bd6 to 5f883ec Compare July 11, 2025 09:18
@icing icing requested a review from bagder July 11, 2025 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-window A merge of this requires an open feature window HTTP/2 HTTP/3 h3 or quic related tests
Development

Successfully merging this pull request may close these issues.

1 participant