Skip to content

Implement an http transport that retries after a rate limit. #68

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

Merged
merged 3 commits into from
Dec 21, 2017

Conversation

calavera
Copy link
Contributor

@calavera calavera commented Dec 21, 2017

Add a transport retry logic for rate limited requests. It's configured to try three times before backing off, or cancelling when the request is cancelled.

I've also added new factory functions to modify the number of attempts.

Fixes #58

Signed-off-by: David Calavera [email protected]

Wait until the reset time expires and try again depending on the pending attempts.

Signed-off-by: David Calavera <[email protected]>
@calavera calavera force-pushed the rate_limit_aware_transport branch 2 times, most recently from 5d6e9c2 to e3b826b Compare December 21, 2017 22:43
@calavera calavera force-pushed the rate_limit_aware_transport branch from e3b826b to a1bd7b2 Compare December 21, 2017 22:50
@calavera calavera merged commit 307bc95 into master Dec 21, 2017
@calavera calavera deleted the rate_limit_aware_transport branch December 21, 2017 22:53
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