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

Clamp Retry-After time to retry.maxRetryAfter #603

Merged
merged 2 commits into from
Jun 26, 2024

Conversation

sholladay
Copy link
Collaborator

Relates to #390

This PR aims to make retry delays more intuitive.

Previously, we would respect the Retry-After header to determine the delay time for the retry, but if Retry-After was greater than the retry.maxRetryAfter option, then the retry delay time would be set to 0, effectively canceling it, given Ky's current logic.

We now use maxRetryAfter as a limit for the delay, rather than a threshold for canceling the retry. If Retry-After is greater than maxRetryAfter, then maxRetryAfter will be used as the delay time.

We now use `maxRetryAfter` as a limit, rather than a threshold for canceling the retry. If `Retry-After` is greater than `maxRetryAfter`, then `Retry-After` will be capped.
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.

1 participant