Skip to content

Fix goaway#3835

Merged
mcollina merged 5 commits intomainfrom
fix-goaway
Nov 14, 2024
Merged

Fix goaway#3835
mcollina merged 5 commits intomainfrom
fix-goaway

Conversation

@mcollina
Copy link
Member

This PR changes how GOAWAY frames and user aborts are handled in HTTP/2.

In essence, we had a flaky test for a while that showed up locally on my machine after 2-3 hours of continuous runs. It's a bad race condition, which has been hard to find and a bad overlap between goaway, aborts, and manipulation of the Client state from the outside.

Signed-off-by: Matteo Collina <hello@matteocollina.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
@mcollina
Copy link
Member Author

I've opened this PR as draft with a lot of debug output, I will clean it up if this actually passes.

Signed-off-by: Matteo Collina <hello@matteocollina.com>
Signed-off-by: Matteo Collina <hello@matteocollina.com>
@mcollina mcollina marked this pull request as ready for review November 14, 2024 10:16
Comment on lines +490 to +492
// The request was aborted
if (!request.aborted) {
request.onComplete([])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am just a little bit confused by the comment. Do you mean, The request was not aborted?

Copy link
Contributor

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont see any obvious issue
LGTM

Signed-off-by: Matteo Collina <hello@matteocollina.com>
@mcollina
Copy link
Member Author

@Uzlopak PTAL

Copy link
Contributor

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@mcollina mcollina merged commit 5ac4fb8 into main Nov 14, 2024
@Uzlopak Uzlopak deleted the fix-goaway branch November 14, 2024 17:04
@github-actions github-actions bot mentioned this pull request Dec 3, 2024
This was referenced Dec 16, 2024
@github-actions github-actions bot mentioned this pull request Mar 12, 2025
@github-actions github-actions bot mentioned this pull request May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants