Skip to content

Commit b8386ea

Browse files
committed
cpl_http: retry "Connection reset by peer"
This fixes the same issue as OSGeo/PROJ#4106 fixes in PROJ.
1 parent 9000d23 commit b8386ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

port/cpl_http.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ double CPLHTTPGetNewRetryDelay(int response_code, double dfOldDelay,
585585
strstr(pszErrBuf, "RequestTimeout")) ||
586586
(pszCurlError && (strstr(pszCurlError, "Connection timed out") ||
587587
strstr(pszCurlError, "Operation timed out") ||
588+
strstr(pszCurlError, "Connection reset by peer") ||
588589
strstr(pszCurlError, "Connection was reset"))))
589590
{
590591
// 'Operation tmied out': seen during some long running operation 'hang'

0 commit comments

Comments
 (0)