curl-and-php
Re: Problems with curl timeout setting
Date: Wed, 26 Jan 2011 14:40:49 +0100 (CET)
On Wed, 26 Jan 2011, 127546_at_sms13.de wrote:
>> 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.
>
> By resolver do you mean dns? I believe I do not use any resolver because we
> connect only using IP?
Ah, OK, then the resolver is not the key...
> Also we think that we found something relevant. We think that the servers we
> connect to which cause these timeout problems are not the real well known
> http servers like apache or nginx. We are pretty sure that the server is
> some self written perl code. Is this possible that this server does not
> return some important headers which causes this timeout problems? For
> example, we connect to server on port 80 and it does not return anything,
> (no content whatsoever for 5 seconds, including no headers), can this affect
> timeouts working?? We think it can, we will try to test it
I don't see why it would. libcurl is made to obey the timeout no matter what
it is doing, and a funny server shouldn't change that. But obviously there's a
problem somewhere...
-- / daniel.haxx.se _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2011-01-26