Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
67f54333
Unverified
Commit
67f54333
authored
Mar 02, 2023
by
neil
Committed by
GitHub
Mar 02, 2023
Browse files
Merge pull request #4531 from NCDGHA/bugfix/issue_4530_fix_http_status_503
Fix to handle LE overload status 503 appropriately
parents
88ac4086
15f96b72
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
67f54333
...
@@ -2229,6 +2229,12 @@ _send_signed_request() {
...
@@ -2229,6 +2229,12 @@ _send_signed_request() {
_debug3 _body "$_body"
_debug3 _body "$_body"
fi
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
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."
_info "It seems the CA server is busy now, let's wait and retry. Sleeping $_sleep_retry_sec seconds."
_CACHED_NONCE=""
_CACHED_NONCE=""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment