timeout support for https
Just a quick diff for 0.7.12 that I put together to implement
Acquire::http::Timeout option support in methods/https.cc using
curl_easy_setopt(). From looking at http.cc it seemed to have a
120-second default and used the timeout for both connection and data, so
I followed the same route for this patch.
Cheers,
Andrew Martens
113d112
< // - http::Timeout
171a171,175
> // set timeout
> int timeout = _config->FindI("Acquire::http::Timeout",120);
> curl_easy_setopt(curl, CURLOPT_TIMEOUT, timeout);
> curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, timeout);
>
Reply to: