From: Clint Clayton Date: Sun, 14 Feb 2016 21:22:19 +0000 (-0800) Subject: CURLOPT_CONNECTTIMEOUT_MS.3: Fix example to use milliseconds option X-Git-Tag: curl-7_48_0~142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ede0bfc079da;p=curl CURLOPT_CONNECTTIMEOUT_MS.3: Fix example to use milliseconds option Change the example in the docs for CURLOPT_CONNECTTIMEOUT_MS to use CURLOPT_CONNECTTIMEOUT_MS instead of CURLOPT_CONNECTTIMEOUT. Closes #653 --- diff --git a/docs/libcurl/opts/CURLOPT_CONNECTTIMEOUT_MS.3 b/docs/libcurl/opts/CURLOPT_CONNECTTIMEOUT_MS.3 index 6fe851e84..7a24a8b97 100644 --- a/docs/libcurl/opts/CURLOPT_CONNECTTIMEOUT_MS.3 +++ b/docs/libcurl/opts/CURLOPT_CONNECTTIMEOUT_MS.3 @@ -47,7 +47,7 @@ if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); /* complete connection within 10000 milliseconds */ - curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 10000L); + curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, 10000L); curl_easy_perform(curl); }