diff --git a/src/networkfilemanager.cpp b/src/networkfilemanager.cpp index bec611f674..5fe9955989 100644 --- a/src/networkfilemanager.cpp +++ b/src/networkfilemanager.cpp @@ -1675,6 +1675,7 @@ static double GetNewRetryDelay(int response_code, double dfOldDelay, // S3 sends some client timeout errors as 400 Client Error (response_code == 400 && pszErrBuf && strstr(pszErrBuf, "RequestTimeout")) || + (pszCurlError && strstr(pszCurlError, "Connection reset by peer")) || (pszCurlError && strstr(pszCurlError, "Connection timed out"))) { // Use an exponential backoff factor of 2 plus some random jitter // We don't care about cryptographic quality randomness, hence: