diff options
author | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2023-05-17 12:23:54 +0300 |
---|---|---|
committer | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2023-05-17 12:23:54 +0300 |
commit | 2ee7a184e7f9e87a7bfac551e4f3c446a16282dc (patch) | |
tree | be99a92551fb1a2b441b750514e8f8568b521678 | |
parent | 28566d93d1a3c13a817f8a94fbe681af3c42ce52 (diff) |
utils.sh: fetch_file: Increase timeout/retries
As a reaction to https://ci.trustedfirmware.org/job/tf-a-builder/2072683/console :
00:00:43.364 + curl --fail --connect-timeout 5 --retry 5 -sLS -o /home/buildslave/workspace/tf-a-builder/workspace/mbedtls.tar.gz https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-2.28.1.tar.gz
00:00:48.381 curl: (28) SSL connection timeout
00:05:20.165 curl: (56) OpenSSL SSL_read: Connection reset by peer, errno 104
So, based on the log, it doesn't even seem that curl made any retries. Reported
as https://github.com/curl/curl/issues/11124 .
In the meantime, let's hope that these increases help anyhow, if not, we'll
need to add retrying on our side.
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: I23481d4fcac155964343cef588e04474eec7678c
-rw-r--r-- | utils.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -141,7 +141,7 @@ fetch_file() { sa="${saveas+-o $saveas}" echo "Fetch: $url -> $saveas" # Use curl to support file protocol - curl --fail --connect-timeout 5 --retry 5 -sLS $sa "$url" + curl --fail --connect-timeout 10 --retry 6 -sLS $sa "$url" else sa="${saveas-.}" echo "Fetch: $url -> $sa" |