diff options
author | Greg Thain <greg.thain@gmail.com> | 2023-03-01 02:18:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-03-01 14:31:04 (GMT) |
commit | 296d2bef0650e2e062bf373eee0f64cc1a82b7cc (patch) | |
tree | a3bd564d619c663ac67dbc862e520feca7418cea /Modules/ExternalProject | |
parent | 12d041b8f7718d9ec48fd3621ddc866a1d3c77cf (diff) | |
download | CMake-296d2bef0650e2e062bf373eee0f64cc1a82b7cc.zip CMake-296d2bef0650e2e062bf373eee0f64cc1a82b7cc.tar.gz CMake-296d2bef0650e2e062bf373eee0f64cc1a82b7cc.tar.bz2 |
ExternalProject: Also retry curl download on timeout error
Since commit f24e34975a (ExternalProject: retry download on recoverable
errors, 2020-08-08, v3.19.0-rc1~298^2~1) ExternalProject has a list of
curl errors which trigger a retry today: 6, 7, 8 and 15.
Add curl error 28. It is a "timeout error", and should also trigger a
retry attempt at a download of an external project. The complete list
of curl errors is https://curl.se/libcurl/c/libcurl-errors.html
Diffstat (limited to 'Modules/ExternalProject')
-rw-r--r-- | Modules/ExternalProject/download.cmake.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/ExternalProject/download.cmake.in b/Modules/ExternalProject/download.cmake.in index ff8c659..bf7f209 100644 --- a/Modules/ExternalProject/download.cmake.in +++ b/Modules/ExternalProject/download.cmake.in @@ -108,7 +108,7 @@ message(STATUS "Downloading... timeout='@TIMEOUT_MSG@' inactivity timeout='@INACTIVITY_TIMEOUT_MSG@'" ) -set(download_retry_codes 7 6 8 15) +set(download_retry_codes 7 6 8 15 28) set(skip_url_list) set(status_code) foreach(i RANGE ${retry_number}) |