From f24ed05839cd9ae1e92ddd17eceab698aab8eed4 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Tue, 17 Sep 2024 16:04:15 -0500 Subject: [PATCH] Update .evergreen/download-mongodb.sh Co-authored-by: Ezra Chung <88335979+eramongodb@users.noreply.github.com> --- .evergreen/download-mongodb.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.evergreen/download-mongodb.sh b/.evergreen/download-mongodb.sh index 288accc0..fd433370 100755 --- a/.evergreen/download-mongodb.sh +++ b/.evergreen/download-mongodb.sh @@ -691,7 +691,10 @@ set_url_win32 () # curl_retry runs curl with up to three retries, retrying any error. curl_retry () { - for i in 2 4 8; do curl --fail -sS --max-time 300 "$@" && break || sleep $i; + for i in 1 2 4 8 16; do + { curl --fail -sS --max-time 300 "$@" && return 0; } || sleep $i + done + return 1 done }