cURL / Mailing Lists / curl-library / Single Mail


Re: CURLOPT_CONNECTTIMEOUT - documentation is incorrect?

From: Daniel Stenberg <>
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!

List admin:
Received on 2011-12-05