From 86624facdccea4cb8acaa064083d6381327f781a Mon Sep 17 00:00:00 2001 From: "A. Athan" <24279435+aathan@users.noreply.github.com> Date: Wed, 23 Oct 2024 21:51:04 +0000 Subject: [PATCH] added SLEEP_TIME --- acme.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/acme.sh b/acme.sh index e39a146b..bd2f5826 100755 --- a/acme.sh +++ b/acme.sh @@ -2205,7 +2205,7 @@ _send_signed_request() { _debug2 nonce "$nonce" if [ -z "$nonce" ]; then _info "Could not get nonce, let's try again." - _sleep 2 + _sleep $SLEEP_TIME continue fi @@ -5044,6 +5044,10 @@ $_authorizations_map" MAX_RETRY_TIMES=30 fi + if [ -z "$SLEEP_TIME" ]; then + SLEEP_TIME=2 + fi + _debug "Let's check the authz status" while true; do waittimes=$(_math "$waittimes" + 1) @@ -5103,8 +5107,8 @@ $_authorizations_map" _on_issue_err "$_post_hook" "$vlist" return 1 fi - _debug "Sleep 2 seconds before verifying again" - _sleep 2 + _debug "Sleep $SLEEP_TIME seconds before verifying again" + _sleep $SLEEP_TIME _debug "Checking" _send_signed_request "$_authz_url" @@ -5178,7 +5182,7 @@ $_authorizations_map" _info "Sleeping for $_retryafter seconds then retrying" _sleep $_retryafter else - _sleep 2 + _sleep SLEEP_TIME fi else _err "Signing error: wrong status"