Skip to content

Commit

Permalink
fix #4530
Browse files Browse the repository at this point in the history
  • Loading branch information
Neilpang committed Mar 2, 2023
1 parent 67f5433 commit 982c54b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion acme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 982c54b

Please sign in to comment.