cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Mukul Kedare <kedare.mukul_at_gmail.com>
Date: Wed, 1 Oct 2008 11:52:17 +0530

Hi ,

I tried version 7.19.0 too, still it did'nt work.
One more thing they say in man page --- if using standard name resolvers all
the timeouts will be done in seconds unit.
Is there any thing regarding name resolvers that I can do while building
libcurl ?
What are C-areas and how to enable it for libcurl built, I am searching for
it but could not find anything uptill now.

Thanks
Mukul

On Tue, Sep 30, 2008 at 11:15 PM, Dan Fandrich <dan_at_coneharvesters.com>wrote:

> On Tue, Sep 30, 2008 at 09:56:45PM +0530, Mukul Kedare wrote:
> > 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.
>
> Some timeouts are limited to a minimum of 1 second when using a synchronous
> host resolver. Try enabling C-Ares in your libcurl build and see if that
> works any better.
>
> >>> Dan
> --
> http://www.MoveAnnouncer.com The web change of address
> service
> Let webmasters know that your web site has moved
>
Received on 2008-10-01