mirror of
https://github.com/acmesh-official/acme.sh
synced 2025-08-30 22:05:34 +00:00
Return failure when falling through limiting loop
In _send_signed_request and _check_dns_entries, return 1 when the timeout (or number of retries) has been exhausted. This allows the calling function to correctly handle the error.
This commit is contained in:
8
acme.sh
8
acme.sh
@@ -2040,8 +2040,10 @@ _send_signed_request() {
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
break
|
||||
return 0
|
||||
done
|
||||
_info "Giving up sending to CA server after $MAX_REQUEST_RETRY_TIMES retries."
|
||||
return 1
|
||||
|
||||
}
|
||||
|
||||
@@ -3819,9 +3821,11 @@ _check_dns_entries() {
|
||||
_sleep 10
|
||||
else
|
||||
_info "All success, let's return"
|
||||
break
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
_info "Timed out waiting for DNS."
|
||||
return 1
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user