-
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
Avoid adding an HttpClient.Timeout message to ConnectTimeout exceptions #72274
Avoid adding an HttpClient.Timeout message to ConnectTimeout exceptions #72274
Conversation
Tagging subscribers to this area: @dotnet/ncl Issue DetailsFixes #67505
|
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, thanks!
} | ||
|
||
[Fact] | ||
public async Task UnknownOperationCanceledException_NotWrappedInATimeoutException() |
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.
Looking into it a bit more, there was a broader issue here where we would classify any unknown OCE (not just ConnectTimeout
) as HttpClient.Timeout
.
I tweaked the checks somewhat to catch such cases as well.
src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs
Outdated
Show resolved
Hide resolved
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.
Thanks!
Co-authored-by: Natalia Kondratyeva <[email protected]>
Failures are #72428 |
Fixes #67505