Skip to content

[H/3] Fix large header tests#117412

Merged
ManickaP merged 2 commits into
dotnet:mainfrom
ManickaP:fix-h3-header-test
Jul 9, 2025
Merged

[H/3] Fix large header tests#117412
ManickaP merged 2 commits into
dotnet:mainfrom
ManickaP:fix-h3-header-test

Conversation

@ManickaP

@ManickaP ManickaP commented Jul 8, 2025

Copy link
Copy Markdown
Member

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.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ManickaP

ManickaP commented Jul 9, 2025

Copy link
Copy Markdown
Member Author

/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

4 participants