-
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
Confusing message on Http timeout #67505
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsFrom some test failures I noticed:
Apparently the timeout was set to Timeout.InfiniteTimeSpan, which is -1 ms. Presumably this couldn't have expired, so the message is confusing. I don't have a repro, so feel free to close if it's not important.
|
The relevant code path that determines the exception type: runtime/src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs Lines 607 to 609 in 1c2198e
We should differentiate between a regular timeout and the Ideally, we would also expose such info in a programmatical way to the user. This recently came up in YARP as well (microsoft/reverse-proxy#1628). |
Triage: It seems we are doing the right thing in the ConnectionPool, but HttpClient overrides it (and wraps with TImeoutException even if the timeout is not set) -- we should fix that. |
From some test failures I noticed:
Apparently the timeout was set to Timeout.InfiniteTimeSpan, which is -1 ms. Presumably this couldn't have expired, so the message is confusing. I don't have a repro, so feel free to close if it's not important.
The text was updated successfully, but these errors were encountered: