cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: using TIMEOUT in curl_setopt

From: Saket Jalan <saaketjalan_at_gmail.com>
Date: Fri, 20 Sep 2013 08:21:35 -0700

Awesome. Thanks a lot.

On Friday, September 20, 2013, Алексей Филиппов wrote:

> I checked implementation in curl-7.32.0, these options share the same
> storage. So the latest option set will be used.
>
> case CURLOPT_TIMEOUT:
> /*
> * The maximum time you allow curl to use for a single transfer
> * operation.
> */
> data->set.timeout = va_arg(param, long) * 1000L;
> break;
>
> case CURLOPT_TIMEOUT_MS:
> data->set.timeout = va_arg(param, long);
> break;
>
>
>
> On Fri, Sep 20, 2013 at 11:28 AM, Saket Jalan <saaketjalan_at_gmail.com<javascript:_e({}, 'cvml', 'saaketjalan_at_gmail.com');>
> > wrote:
>
>> Hi,
>>
>> What happens when in some way both options CURLOPT_TIMEOUT_MS and
>> CURL_TIMEOUT are set? which value is used assuming both have different
>> values?
>>
>> Thanks,
>> Saket Jalan
>>
>> -------------------------------------------------------------------
>> List admin: http://cool.haxx.se/list/listinfo/curl-library
>> Etiquette: http://curl.haxx.se/mail/etiquette.html
>>
>
>

-- 
Saket Jalan

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-09-20