1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B OpenNebula/one#6431: change retry-all to retry-connrefused (#2889)

Signed-off-by: Neal Hansen <nhansen@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
(cherry picked from commit deb4a9d7ddb6b0bd8c57cbfa70426f0871962d99)
This commit is contained in:
Neal 2024-01-24 04:00:36 -07:00 committed by Tino Vázquez
parent 97c7c93933
commit 8f1c215385
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -311,7 +311,7 @@ function curl_retry_args {
CURL_VER=`curl --version | grep -o 'curl [0-9\.]*' | awk '{print $2}'`
# To retry also on conn-reset-by-peer fresh curl is needed
if verlte "7.71.0" "$CURL_VER"; then
if verlte "7.71.0" "$CURL_VER" && [ -z ${MAX_SIZE} ] ; then
RETRY_ARGS+=" --retry-all-errors"
fi