Skip to content

Commit 95d71e8

Browse files
pjonssongithub-actions[bot]
authored andcommitted
Retry "SSL connection timeout"
Building the GDAL image can fail with: Downloading https://cdn.proj.org/de_lgvl_saarland_README.txt... (86 / 439) Downloading https://cdn.proj.org/de_lgvl_saarland_SeTa2016.tif... (87 / 439) Cannot open https://cdn.proj.org/de_lgvl_saarland_SeTa2016.tif: SSL connection timeout Cannot download https://cdn.proj.org/de_lgvl_saarland_SeTa2016.tif so add SSL connection timeout to the list of things that get a retry time. Sibling of commit 7230712.
1 parent e2f0432 commit 95d71e8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/networkfilemanager.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1696,7 +1696,8 @@ static double GetNewRetryDelay(int response_code, double dfOldDelay,
16961696
(response_code == 400 && pszErrBuf &&
16971697
strstr(pszErrBuf, "RequestTimeout")) ||
16981698
(pszCurlError && strstr(pszCurlError, "Connection reset by peer")) ||
1699-
(pszCurlError && strstr(pszCurlError, "Connection timed out"))) {
1699+
(pszCurlError && strstr(pszCurlError, "Connection timed out")) ||
1700+
(pszCurlError && strstr(pszCurlError, "SSL connection timeout"))) {
17001701
// Use an exponential backoff factor of 2 plus some random jitter
17011702
// We don't care about cryptographic quality randomness, hence:
17021703
// coverity[dont_call]

0 commit comments

Comments
 (0)