Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added SLEEP_TIME #5334

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions acme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
Loading