From 3a957ec149a032bbfd18f91b30eb6dac442445ad Mon Sep 17 00:00:00 2001 From: Farbod Bijary <110523279+farbodbj@users.noreply.github.com> Date: Sat, 31 Aug 2024 17:09:20 +0330 Subject: [PATCH] Update common/common.cpp Co-authored-by: Xuan Son Nguyen --- common/common.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/common.cpp b/common/common.cpp index 7b989e4df..bab3c3b89 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -2361,9 +2361,7 @@ static bool llama_download_file(const std::string & url, const std::string & pat curl_easy_setopt(curl.get(), CURLOPT_HEADERFUNCTION, static_cast(header_callback)); curl_easy_setopt(curl.get(), CURLOPT_HEADERDATA, &headers); - int head_request_attempts = 3; - int remaining_request_attempts = 3; - int retry_delay = 2; + int remaining_request_attempts = CURL_MAX_RETRY; while (remaining_request_attempts > 0){ CURLcode res = curl_easy_perform(curl.get()); if (res != CURLE_OK) {