Skip to content

Commit

Permalink
Merge pull request #4106 from pjonsson/retry-reset-by-peer
Browse files Browse the repository at this point in the history
Retry "Connection reset by peer"
  • Loading branch information
rouault authored Mar 27, 2024
2 parents 2ff88c7 + 7230712 commit 70d4d32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/networkfilemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 70d4d32

Please sign in to comment.