cURL / Mailing Lists / curl-library / Single Mail


CURLOPT_CONNECTTIMEOUT - documentation is incorrect?

From: Vladimir Grishchenko <>
Date: Mon, 5 Dec 2011 11:42:59 -0800

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?


List admin:
Received on 2011-12-05