diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-11-17 09:55:22 -0600 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-11-17 09:55:22 -0600 |
commit | 5085e660679cdbb51783702898c42000d5db4fba (patch) | |
tree | 8123569f94324b5445b3502becf158a8595455ca /methods/https.cc | |
parent | 43cf55db7c2ce7015d365556ed9ab0b8b2cec3ca (diff) | |
download | apt-5085e660679cdbb51783702898c42000d5db4fba.tar.gz |
methods/https.cc: cleanup for CURLOPT_LOW_SPEED_TIME
Diffstat (limited to 'methods/https.cc')
-rw-r--r-- | methods/https.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/methods/https.cc b/methods/https.cc index 3cbb0088a..dbc1cf52c 100644 --- a/methods/https.cc +++ b/methods/https.cc @@ -214,8 +214,7 @@ bool HttpsMethod::Fetch(FetchItem *Itm) int timeout = _config->FindI("Acquire::http::Timeout",120); curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, timeout); //set really low lowspeed timeout (see #497983) - int dlMin = 1; - curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, dlMin); + 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 |