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
70f4cad2
Commit
70f4cad2
authored
Mar 07, 2023
by
Markus Hoffrogge
Browse files
Fix Retry-After handling
- closes #4543
parent
ce629e8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
70f4cad2
...
...
@@ -2229,8 +2229,8 @@ _send_signed_request() {
_debug3 _body "$_body"
fi
_retryafter=$(echo "$responseHeaders" | grep -i "^Retry-After *:" | cut -d : -f 2 | tr -d ' ' | tr -d '\r')
if [ "$code" = '503'
] || [ "$_retryafter"
]; then
_retryafter=$(echo "$responseHeaders" | grep -i "^Retry-After *:
*[0-9]\+ *
" | cut -d : -f 2 | tr -d ' ' | tr -d '\r')
if [ "$code" = '503' ]; then
_sleep_overload_retry_sec=$_retryafter
if [ -z "$_sleep_overload_retry_sec" ]; then
_sleep_overload_retry_sec=5
...
...
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