-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[H/3] Fix large header tests #117412
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
[H/3] Fix large header tests #117412
Conversation
Tagging subscribers to this area: @dotnet/ncl |
There was a problem hiding this 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
withReadRequestDataAsync
andSendResponseAsync
calls in two test cases. - Added explicit disposal of the generic connection in
finally
blocks.
src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.MaxResponseHeadersLength.cs
Outdated
Show resolved
Hide resolved
src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.MaxResponseHeadersLength.cs
Show resolved
Hide resolved
src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.MaxResponseHeadersLength.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <[email protected]>
/ba-g unrelated or known |
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.