mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-14 10:21:45 +00:00
This commit is contained in:
parent
67f543332a
commit
982c54b605
6
acme.sh
6
acme.sh
@ -2230,7 +2230,11 @@ _send_signed_request() {
|
||||
fi
|
||||
|
||||
if [ "$code" = '503' ]; then
|
||||
_sleep_overload_retry_sec=3
|
||||
_retryafter=$(echo "$responseHeaders" | grep -i "^Retry-After *:" | cut -d : -f 2 | tr -d ' ' | tr -d '\r')
|
||||
_sleep_overload_retry_sec=$_retryafter
|
||||
if [ -z "$_sleep_overload_retry_sec" ]; then
|
||||
_sleep_overload_retry_sec=5
|
||||
fi
|
||||
_info "It seems the CA server is currently overloaded, let's wait and retry. Sleeping $_sleep_overload_retry_sec seconds."
|
||||
_sleep $_sleep_overload_retry_sec
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user