cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem using curl easy Milli Seconds time out options ...

From: Wei Weng <wweng_at_acedsl.com>
Date: Tue, 30 Sep 2008 13:18:04 -0400

Mukul Kedare wrote:
> Hi ,
>
> I am using curl easy interface in my application, was trying to set
> CURLOPT_CONNECTTIMEOUT_MS and CURLOPT_TIMEOUT_MS options using
> curl_easy_setopt .
> curl_easy_setopt(curl_handle,
> CURLOPT_CONNECTTIMEOUT_MS, 20);
> curl_easy_setopt(curl_handle,
> CURLOPT_TIMEOUT_MS, 30);
>
>
> However the curl easy interface is not timing out in milli seconds unit
> but the same is working fine with timouts in second options ie ..
> CURLOPT_CONNECTTIMEOUT and CURLOPT_TIMEOUT.
> curl_easy_setopt(curl_handle,
> CURLOPT_CONNECTTIMEOUT, 1);
> curl_easy_setopt(curl_handle,
> CURLOPT_TIMEOUT, 1);
>
> What could be the reason that millisecond time out options are not
> working, is there any way to fix this issue.
> The curl_easy_setopt man page says that the MS options were added in
> version 7.16.2 and am using curl 7.17.0. <http://7.17.0.>
>
> Is there any way to built libcurl to support MS Timeout options.
> Please help me out.
>
> Regards
> Mukul
Mukul,

What about upgrading to the latest curl 7.1*9*.0 and see if the problem still
exists?

Thanks
Wei
Received on 2008-09-30