Skip to content

feat(http)!: retry requests on 429 #2424

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

Draft
wants to merge 5 commits into
base: vilgotf/new-limiter
Choose a base branch
from

Conversation

vilgotf
Copy link
Member

@vilgotf vilgotf commented Mar 22, 2025

Makes the http field backed by an Arc and then shares it, along with the rate limiter, request, and path, with the RequestFuture so that it may re-initialize itself on 429 responses. It might make sense to log or keep count of the amount of retries to highlight ill-behaved requests.

Depends upon #2418

Closes #600, #1261

@github-actions github-actions bot added c-http Affects the http crate c-http-ratelimiting Affects the http ratelimiting crate m-breaking change Breaks the public API. t-feature Addition of a new feature labels Mar 22, 2025
@vilgotf vilgotf changed the base branch from next to vilgotf/new-limiter March 22, 2025 08:51
@github-actions github-actions bot removed the c-http-ratelimiting Affects the http ratelimiting crate label Mar 22, 2025
This was linked to issues Apr 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-http Affects the http crate m-breaking change Breaks the public API. t-feature Addition of a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support X-Ratelimit-Scope http: retry request on 429
1 participant