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

Fix the incorrect behavior of repeater middleware without status codes set #4

Merged
merged 5 commits into from Nov 5, 2023

Conversation

umputun
Copy link
Member

@umputun umputun commented Nov 5, 2023

In none of failOnCodes set for Repeater, it will not retry on any status code. This behavior is a bug, and by default it should retry on any status code >=400

Note: in some cases, not failing on any status can be desirable, and users can achieve the same effect by passing some fake code, like 0 or even -1. But acting in such a way by default was wrong, as in the usual case users expect non-200 code to be treated as retryable error.

@umputun umputun merged commit 4605015 into master Nov 5, 2023
3 checks passed
@umputun umputun deleted the repater-no-codes branch November 5, 2023 20:58
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

Successfully merging this pull request may close these issues.

None yet

1 participant