-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Fix exception mapping during expect 100 cancellation. #41800
Conversation
Tagging subscribers to this area: @dotnet/ncl |
/azp run runtime-libraries stress-http |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime-libraries stress-http |
Azure Pipelines successfully started running 1 pipeline(s). |
Failing test is #37838 |
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.
lgtm
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs
Outdated
Show resolved
Hide resolved
/backport to release/5.0-rc2 |
Started backporting to release/5.0-rc2: https://github.com/dotnet/runtime/actions/runs/246289373 |
Discovered during HTTP stress tests for HTTP 1.1
The exception from
sendRequestContentTask
was thrown as-is instead of being mapped as any other exception (e.g. being wrapped inOperationCanceledException
when task was cancelled)Stress failure: https://dev.azure.com/dnceng/public/_build/results?buildId=796633&view=logs&j=2d2b3007-3c5c-5840-9bb0-2b1ea49925f3&t=8030b67c-413b-5f79-b1fb-b1ba3f08bc47&l=1235
The related code block has been introduced in 5.0 (#38774) and this is a regression from 3.1: a different type of exception is thrown for cancellation than
TaskCancelledException
.Contributes to #40388