Skip to content
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

Merged
merged 3 commits into from
Jul 19, 2022

Conversation

MihaZupan
Copy link
Member

Fixes #67505

@MihaZupan MihaZupan added this to the 7.0.0 milestone Jul 15, 2022
@MihaZupan MihaZupan requested a review from a team July 15, 2022 16:03
@ghost ghost assigned MihaZupan Jul 15, 2022
@ghost
Copy link

ghost commented Jul 15, 2022

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

Issue Details

Fixes #67505

Author: MihaZupan
Assignees: -
Labels:

area-System.Net.Http

Milestone: 7.0.0

Copy link
Member

@CarnaViire CarnaViire left a 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()
Copy link
Member Author

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.

Copy link
Member

@CarnaViire CarnaViire left a 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 <knatalia@microsoft.com>
@MihaZupan
Copy link
Member Author

Failures are #72428

@MihaZupan MihaZupan merged commit bf7cdc5 into dotnet:main Jul 19, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Aug 18, 2022
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.

Confusing message on Http timeout
2 participants