cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_CONNECTTIMEOUT - documentation is incorrect?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 5 Dec 2011 23:19:39 +0100 (CET)

On Mon, 5 Dec 2011, Vladimir Grishchenko wrote:

> The description of this option contains the statement:
>
> "Set to zero to disable connection timeout (it will then only timeout on the
> system's internal timeouts)."
>
> By looking at the Curl_timeleft() I don't see this can ever happen, if set
> to 0 the connect timeout will either be capped by the value of
> CURLOPT_TIMEOUT or if the latter is set to 0 then by DEFAULT_CONNECT_TIMEOUT
> (5 mins). Am I missing something?

No, you're completely right. The manual description is a remainder of how
things once used to work. These days the connection timeout is 5 minutes by
default. I'll update the docs to reflect reality!

Thanks for pointing this out!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-12-05