Skip to content

Commit 42a5cd9

Browse files
committed
1 parent bf00d31 commit 42a5cd9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

acme.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2235,9 +2235,13 @@ _send_signed_request() {
22352235
if [ -z "$_sleep_overload_retry_sec" ]; then
22362236
_sleep_overload_retry_sec=5
22372237
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
2238+
if [ $_sleep_overload_retry_sec -le 600 ]; then
2239+
_info "It seems the CA server is currently overloaded, let's wait and retry. Sleeping $_sleep_overload_retry_sec seconds."
2240+
_sleep $_sleep_overload_retry_sec
2241+
continue
2242+
else
2243+
_info "The retryafter=$_retryafter is too large > 600, not retry anymore."
2244+
fi
22412245
fi
22422246
if _contains "$_body" "JWS has invalid anti-replay nonce" || _contains "$_body" "JWS has an invalid anti-replay nonce"; then
22432247
_info "It seems the CA server is busy now, let's wait and retry. Sleeping $_sleep_retry_sec seconds."

0 commit comments

Comments
 (0)