Skip to content

Commit

Permalink
Merge pull request #4107 from OSGeo/backport-4106-to-9.4
Browse files Browse the repository at this point in the history
[Backport 9.4] Retry "Connection reset by peer"
  • Loading branch information
rouault authored Mar 27, 2024
2 parents f9a967c + 65fd97d commit 72e6dba
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 72e6dba

Please sign in to comment.