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 <[email protected]> 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

Reply via email to