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
150029a5
Unverified
Commit
150029a5
authored
Jul 28, 2018
by
neil
Committed by
GitHub
Jul 28, 2018
Browse files
Merge pull request #1752 from Neilpang/badnonce
add more retry for badnonce error
parents
cc2d5946
709a3fb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
150029a5
...
@@ -1800,7 +1800,8 @@ _send_signed_request() {
...
@@ -1800,7 +1800,8 @@ _send_signed_request() {
payload64
=
$(
printf
"%s"
"
$payload
"
| _base64 | _url_replace
)
payload64
=
$(
printf
"%s"
"
$payload
"
| _base64 | _url_replace
)
_debug3 payload64
"
$payload64
"
_debug3 payload64
"
$payload64
"
MAX_REQUEST_RETRY_TIMES
=
5
MAX_REQUEST_RETRY_TIMES
=
20
_sleep_retry_sec
=
1
_request_retry_times
=
0
_request_retry_times
=
0
while
[
"
${
_request_retry_times
}
"
-lt
"
$MAX_REQUEST_RETRY_TIMES
"
]
;
do
while
[
"
${
_request_retry_times
}
"
-lt
"
$MAX_REQUEST_RETRY_TIMES
"
]
;
do
_request_retry_times
=
$(
_math
"
$_request_retry_times
"
+ 1
)
_request_retry_times
=
$(
_math
"
$_request_retry_times
"
+ 1
)
...
@@ -1895,9 +1896,9 @@ _send_signed_request() {
...
@@ -1895,9 +1896,9 @@ _send_signed_request() {
fi
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."
_info
"It seems the CA server is busy now, let's wait and retry.
Sleeping
$_sleep_retry_sec
seconds.
"
_CACHED_NONCE
=
""
_CACHED_NONCE
=
""
_sleep
5
_sleep
$_sleep_retry_sec
continue
continue
fi
fi
break
break
...
...
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