Skip to content

Comments

Fix race in RST_STREAM_IncompleteRequest_AdditionalWindowUpdateFrame_ConnectionAborted#57450

Merged
amcasey merged 2 commits intodotnet:mainfrom
amcasey:gh53744
Aug 23, 2024
Merged

Fix race in RST_STREAM_IncompleteRequest_AdditionalWindowUpdateFrame_ConnectionAborted#57450
amcasey merged 2 commits intodotnet:mainfrom
amcasey:gh53744

Conversation

@amcasey
Copy link
Member

@amcasey amcasey commented Aug 22, 2024

There was a race between early-sending the response headers and sending the goaway for the aborted connection.

For #53744

…_ConnectionAborted

There was a race between early-sending the response headers and sending the goaway for the aborted connection.

Fixes dotnet#53744
@ghost ghost added the area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions label Aug 22, 2024
@amcasey amcasey changed the title Unquarantine RST_STREAM_IncompleteRequest_AdditionalWindowUpdateFrame_ConnectionAborted Fix race in RST_STREAM_IncompleteRequest_AdditionalWindowUpdateFrame_ConnectionAborted Aug 22, 2024
@amcasey
Copy link
Member Author

amcasey commented Aug 23, 2024

@JamesNK This one too? 🙏

@amcasey amcasey merged commit 21afee0 into dotnet:main Aug 23, 2024
@amcasey amcasey deleted the gh53744 branch August 23, 2024 22:21
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview1 milestone Aug 23, 2024
@danroth27 danroth27 added the task label Feb 11, 2025
adityamandaleeka added a commit to adityamandaleeka/aspnetcore that referenced this pull request Feb 17, 2026
Move tcs.TrySetResult() after WaitForConnectionErrorAsync to prevent
the response HEADERS from racing with the GOAWAY frame. Same fix
pattern as dotnet#57450 applied to AdditionalDataFrames and
AdditionalTrailerFrames variants.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants