You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I'm not mistaken, then the HttpOptions.TimeoutInSeconds are not working as expected right now because they are only used to create a policy which will let the HTTP request timeout after the specified timeout.
The HttpClient used for that request however also has a timeout which defaults to 100s. If the configured timeout is higher than that, then the request will timeout after 100 seconds and the configured timeout used in the policy will never be used.
I am not sure why we use this policy at all if the HttpClient already has a timeout. We should probably remove the timeout policy completely and instead just configure the timeout used for HttpClient.
We could also use this opportunity to refactor TimeoutInSeconds into a TimeSpanTimeout which would be more consistent with other such settings in .NET.
The text was updated successfully, but these errors were encountered:
If I'm not mistaken, then the
HttpOptions.TimeoutInSeconds
are not working as expected right now because they are only used to create a policy which will let the HTTP request timeout after the specified timeout.The
HttpClient
used for that request however also has a timeout which defaults to100s
. If the configured timeout is higher than that, then the request will timeout after 100 seconds and the configured timeout used in the policy will never be used.I am not sure why we use this policy at all if the
HttpClient
already has a timeout. We should probably remove the timeout policy completely and instead just configure the timeout used forHttpClient
.We could also use this opportunity to refactor
TimeoutInSeconds
into aTimeSpan
Timeout
which would be more consistent with other such settings in .NET.The text was updated successfully, but these errors were encountered: