curl-and-php
Re: Premature timeout
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 21 May 2004 22:55:15 +0200 (CEST)
Date: Fri, 21 May 2004 22:55:15 +0200 (CEST)
On Fri, 21 May 2004, Alex Bolgarov wrote:
> The question I was asking was how can I control (if I can at all) the
> timeout when the curl waits for something to be received from the server. I
> set all possible timeouts (CURLOPT_TIMEOUT and CURLOPT_CONNECTTIMEOUT) to 60
> sec, and was expected the curl to wait for 60 sec. Instead, it waited only
> for 15 sec.
The timeout values are the maximum time curl will spend. If it figures out
something in a shorter time, it'll take shorter time. You cannot make it take
longer time than it needs to.
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2004-05-21