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

Retry request even if retry delay is zero #604

Merged
merged 1 commit into from
Jun 30, 2024

Conversation

sholladay
Copy link
Collaborator

Closes #390

This PR aims to align our retry delay semantics with setTimeout() and similar, i.e. 0 means retry immediately, not cancel.

This applies to all delay sources, including Retry-After.

@sindresorhus sindresorhus merged commit 4886b66 into sindresorhus:main Jun 30, 2024
1 check passed
@sholladay sholladay deleted the zero-should-retry branch June 30, 2024 21:01
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.

Several retry problems
2 participants