Skip to content

Conversation

ManickaP
Copy link
Member

@ManickaP ManickaP commented Jul 8, 2025

Fixes #117015

See #117015 (comment) for explanation.

Replace HandleRequestAsync to avoid server sending GO_AWAY and client immediately closing connection after the stream abort. Leading to race of connection_close and stream_abort in H/3 case.

Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the large-header response tests to avoid using HandleRequestAsync, preventing premature GO_AWAY frames in H/3 tests by manually reading requests and sending responses over a generic connection.

  • Replaced HandleRequestAsync with ReadRequestDataAsync and SendResponseAsync calls in two test cases.
  • Added explicit disposal of the generic connection in finally blocks.

@ManickaP
Copy link
Member Author

ManickaP commented Jul 9, 2025

/ba-g unrelated or known

@ManickaP ManickaP merged commit 513ff1a into dotnet:main Jul 9, 2025
78 of 87 checks passed
@ManickaP ManickaP deleted the fix-h3-header-test branch July 9, 2025 07:18
@github-actions github-actions bot locked and limited conversation to collaborators Aug 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SocketsHttpHandler_HttpClientHandler_MaxResponseHeadersLength_Http3.LargeSingleHeader_ThrowsException failing
3 participants