|
|
|
@ -5116,6 +5116,19 @@ $_authorizations_map"
|
|
|
|
|
_on_issue_err "$_post_hook" "$vlist" |
|
|
|
|
return 1 |
|
|
|
|
fi |
|
|
|
|
_retryafter=$(echo "$responseHeaders" | grep -i "^Retry-After *: *[0-9]\+ *" | cut -d : -f 2 | tr -d ' ' | tr -d '\r') |
|
|
|
|
_sleep_overload_retry_sec=$_retryafter |
|
|
|
|
if [ "$_sleep_overload_retry_sec" ]; then |
|
|
|
|
if [ $_sleep_overload_retry_sec -le 600 ]; then |
|
|
|
|
_sleep $_sleep_overload_retry_sec |
|
|
|
|
else |
|
|
|
|
_info "The retryafter=$_retryafter value is too large (> 600), will not retry anymore." |
|
|
|
|
_clearupwebbroot "$_currentRoot" "$removelevel" "$token" |
|
|
|
|
_clearup |
|
|
|
|
_on_issue_err "$_post_hook" "$vlist" |
|
|
|
|
return 1 |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
done |
|
|
|
|