X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/7efded877fcf46f51b464fe4c5e053f26609f9d0..16d7341fce96b089aa2a1c241acd0a72209bcd7f:/methods/https.cc?ds=sidebyside diff --git a/methods/https.cc b/methods/https.cc index 79e6fea3f..47988970b 100644 --- a/methods/https.cc +++ b/methods/https.cc @@ -213,8 +213,10 @@ bool HttpsMethod::Fetch(FetchItem *Itm) // set timeout int timeout = _config->FindI("Acquire::http::Timeout",120); - curl_easy_setopt(curl, CURLOPT_TIMEOUT, timeout); curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, timeout); + //set really low lowspeed timeout (see #497983) + curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, DL_MIN_SPEED); + curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, timeout); // set redirect options and default to 10 redirects bool AllowRedirect = _config->FindI("Acquire::https::AllowRedirect", true);