We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67f5433 commit 982c54bCopy full SHA for 982c54b
acme.sh
@@ -2230,7 +2230,11 @@ _send_signed_request() {
2230
fi
2231
2232
if [ "$code" = '503' ]; then
2233
- _sleep_overload_retry_sec=3
+ _retryafter=$(echo "$responseHeaders" | grep -i "^Retry-After *:" | cut -d : -f 2 | tr -d ' ' | tr -d '\r')
2234
+ _sleep_overload_retry_sec=$_retryafter
2235
+ if [ -z "$_sleep_overload_retry_sec" ]; then
2236
+ _sleep_overload_retry_sec=5
2237
+ fi
2238
_info "It seems the CA server is currently overloaded, let's wait and retry. Sleeping $_sleep_overload_retry_sec seconds."
2239
_sleep $_sleep_overload_retry_sec
2240
continue
0 commit comments