curl-and-php
Re: Problems with curl timeout setting
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 24 Jan 2011 19:52:51 +0100 (CET)
Date: Mon, 24 Jan 2011 19:52:51 +0100 (CET)
On Mon, 24 Jan 2011, 127546_at_sms13.de wrote:
> timeout is set at 2000ms, php returns the following
>
> $inf['total_time']=1.97
> $inf['connect_time']=0.04
> $inf['namelookup_time']=0.00
>
> Operation timed out after 2974 milliseconds with 0 out of -1 bytes received|
>
> which is close to 3s, why is that?
You've reached the end of my road here. If you can repeat that in a C program
using libcurl, or the curl command line tool, then I'd be interested in
looking into it. I'm not a PHP guy and I don't want to debug libcurl through
it.
It is also relevant what resolver you're using, as if you use the stock *nix
resolver, it has a full-second resolution in the time-outs.
-- / daniel.haxx.se _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2011-01-24