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 when rate-limit ceiling reached #23

Merged
merged 3 commits into from
May 11, 2017
Merged

Conversation

msaladna
Copy link
Contributor

@msaladna msaladna commented May 7, 2017

ACME imposes a 20 request/second rate-limit on new-reg, new-authz, and new-cert requests. This PR amends POST to include a 1 second sleep/retry on 429 responses to work around the rate-limit threshold on larger certificate requests.

@kelunik
Copy link
Owner

kelunik commented May 8, 2017

Thank you for the contribution. Could you fix the test that the change of the error message broke?

@msaladna
Copy link
Contributor Author

Fixed the unit test + include which status triggered the failure (400/429)

@@ -200,7 +200,7 @@ public function failsWithInvalidDirectoryResponseButCorrectErrorResponse() {
* @test
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The perm bits unintentionally changed?

@kelunik kelunik merged commit c5abcd1 into kelunik:master May 11, 2017
@kelunik
Copy link
Owner

kelunik commented May 11, 2017

Thanks!

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.

3 participants