]> granicus.if.org Git - curl/commitdiff
CURLOPT_CONNECTTIMEOUT_MS.3: Fix example to use milliseconds option
authorClint Clayton <clintclayton@me.com>
Sun, 14 Feb 2016 21:22:19 +0000 (13:22 -0800)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 14 Feb 2016 21:38:12 +0000 (22:38 +0100)
Change the example in the docs for CURLOPT_CONNECTTIMEOUT_MS to use
CURLOPT_CONNECTTIMEOUT_MS instead of CURLOPT_CONNECTTIMEOUT.

Closes #653

docs/libcurl/opts/CURLOPT_CONNECTTIMEOUT_MS.3

index 6fe851e84417b03361cc8e207a59f6e9b43ecc22..7a24a8b97663a3b05c95e3a10d1104b02fbfb23c 100644 (file)
@@ -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);
 }