-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Fix handling of Retry-After header #4543
Comments
Please upgrade to the latest code and try again first. Maybe it's already fixed. |
PR #4544 is supposed to close this issue. |
I can confirm that there's a problem in the way the retry are currently handled. I posted a reply to the PR #4530, as I thought the problem was coming from it. In my case, there was too many identical certs issued, and it was asking me to wait 168 hours ...
We should probably add a high threshold that bypass the waiting logic. For example, if the retry header value is more than X (i.e. 600 seconds, or10 minutes) , then don't wait and throw an error. I don't know anyone that want to wait for 10 minutes to be able to retry to have their cert generated. |
@Neilpang |
Description
@Neilpang IMO the following coding is critical - see list of reasons below:
acme.sh/acme.sh
Lines 2232 to 2233 in 799e402
503
- e.g. by429
(limit reached), then a retry at this code place will be critical, since e.g. in case of limit "too many requests for the same domain id within last 168 hours(=7 days)" the Retry-After duration will be a couple of days!To keep it simple at this place we should allow value in seconds only by filtering Retry-After for a numeric value through the regex used for
grep
.PR #4544 has been created to, close this issue.
References
LE about 503 vs. 429: https://community.letsencrypt.org/t/new-service-busy-responses-beginning-during-high-load/184174
429 mentioning Retry-After: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429
Rate Limits: https://www.rfc-editor.org/rfc/rfc8555#section-6.6
Retry-After value formats: https://www.rfc-editor.org/rfc/rfc7231#section-7.1.3
RFC1123 HTTP-date format https://wiki.freepascal.org/RFC_1123_Time_Format
The text was updated successfully, but these errors were encountered: