Skip to content

Commit

Permalink
Merge pull request #4531 from NCDGHA/bugfix/issue_4530_fix_http_statu…
Browse files Browse the repository at this point in the history
…s_503

Fix to handle LE overload status 503 appropriately
  • Loading branch information
Neilpang authored Mar 2, 2023
2 parents 88ac408 + 15f96b7 commit 67f5433
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions acme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2229,6 +2229,12 @@ _send_signed_request() {
_debug3 _body "$_body"
fi

if [ "$code" = '503' ]; then
_sleep_overload_retry_sec=3
_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
fi
if _contains "$_body" "JWS has invalid anti-replay nonce" || _contains "$_body" "JWS has an invalid anti-replay nonce"; then
_info "It seems the CA server is busy now, let's wait and retry. Sleeping $_sleep_retry_sec seconds."
_CACHED_NONCE=""
Expand Down

0 comments on commit 67f5433

Please sign in to comment.