cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-and-php mailing list Archives

Re: Premature timeout

From: Daniel Stenberg <daniel-curl_at_haxx.se>
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.html
Received on 2004-05-21

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET