-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
TimeoutStrategyOptions.TimeoutGenerator docs are incorrect #2266
Comments
In case of Retry when the Polly/src/Polly.Core/Retry/RetryResilienceStrategy.cs Lines 67 to 76 in a9008fa
Polly/src/Polly.Core/Retry/RetryHelper.cs Line 14 in a9008fa
I assume we wanted to have something similar for the TimeoutStrategy. BUT now it behaves in the following way:
|
@martincostello Can you close this issue please? |
Resolved by #2275. |
The XML comment on the
TimeoutGenerator
property says that returningTimeSpan.Zero
means "useTimeout
instead":Polly/src/Polly.Core/Timeout/TimeoutStrategyOptions.cs
Lines 30 to 31 in 074a14d
However, the code has no such logic. Any return value less than or equal to
TimeSpan.Zero
is treated as an infinite timeout:Polly/src/Polly.Core/Timeout/TimeoutResilienceStrategy.cs
Lines 31 to 40 in a9008fa
The text was updated successfully, but these errors were encountered: