cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: using TIMEOUT in curl_setopt

From: Алексей Филиппов <sarum9in_at_gmail.com>
Date: Fri, 20 Sep 2013 15:17:26 +0400

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> 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
>

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