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

ReceiverHost retry policy causes Negative timespan #167

Open
zwq000 opened this issue Nov 21, 2022 · 0 comments
Open

ReceiverHost retry policy causes Negative timespan #167

zwq000 opened this issue Nov 21, 2022 · 0 comments

Comments

@zwq000
Copy link

zwq000 commented Nov 21, 2022

public Task StartAsync(CancellationToken cancellationToken = default)
        {
            return Retriable.RetryAsync(() =>
                        this.StartAsyncInternal(cancellationToken),
                        cancellationToken,
                        new Backoff(maxTries: 100, deltaBackoff: TimeSpan.FromSeconds(5)),
                        new AnyExceptionPolicy(),
                        false);
        }

retry time 18 = -24.20:31:22.6480000
Backoff is an exponentially increasing retry delay, which is not very suitable here and will lead to long retry waiting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant