Hi,

I noticed a typo in TCP keepalive setup example.  The fix is attached.

Regards,

Egon
diff -urN curl-master/docs/libcurl/opts/CURLOPT_TCP_KEEPALIVE.3 curl-master.fixed/docs/libcurl/opts/CURLOPT_TCP_KEEPALIVE.3
--- curl-master/docs/libcurl/opts/CURLOPT_TCP_KEEPALIVE.3	2015-05-06 08:34:31.000000000 +0200
+++ curl-master.fixed/docs/libcurl/opts/CURLOPT_TCP_KEEPALIVE.3	2015-05-07 14:22:53.501588469 +0200
@@ -50,7 +50,7 @@
   curl_easy_setopt(curl, CURLOPT_TCP_KEEPIDLE, 120L);
 
   /* interval time between keep-alive probes: 60 seconds */
-  curl_easy_setopt(curl, CURLOPT_TCP_KEEPIDLE, 60L);
+  curl_easy_setopt(curl, CURLOPT_TCP_KEEPINTVL, 60L);
 
   curl_easy_perform(curl);
 }
diff -urN curl-master/docs/libcurl/opts/CURLOPT_TCP_KEEPIDLE.3 curl-master.fixed/docs/libcurl/opts/CURLOPT_TCP_KEEPIDLE.3
--- curl-master/docs/libcurl/opts/CURLOPT_TCP_KEEPIDLE.3	2015-05-06 08:34:31.000000000 +0200
+++ curl-master.fixed/docs/libcurl/opts/CURLOPT_TCP_KEEPIDLE.3	2015-05-07 14:22:53.585589730 +0200
@@ -48,7 +48,7 @@
   curl_easy_setopt(curl, CURLOPT_TCP_KEEPIDLE, 120L);
 
   /* interval time between keep-alive probes: 60 seconds */
-  curl_easy_setopt(curl, CURLOPT_TCP_KEEPIDLE, 60L);
+  curl_easy_setopt(curl, CURLOPT_TCP_KEEPINTVL, 60L);
 
   curl_easy_perform(curl);
 }
diff -urN curl-master/docs/libcurl/opts/CURLOPT_TCP_KEEPINTVL.3 curl-master.fixed/docs/libcurl/opts/CURLOPT_TCP_KEEPINTVL.3
--- curl-master/docs/libcurl/opts/CURLOPT_TCP_KEEPINTVL.3	2015-05-06 08:34:31.000000000 +0200
+++ curl-master.fixed/docs/libcurl/opts/CURLOPT_TCP_KEEPINTVL.3	2015-05-07 14:22:53.553589251 +0200
@@ -46,7 +46,7 @@
   curl_easy_setopt(curl, CURLOPT_TCP_KEEPIDLE, 120L);
 
   /* interval time between keep-alive probes: 60 seconds */
-  curl_easy_setopt(curl, CURLOPT_TCP_KEEPIDLE, 60L);
+  curl_easy_setopt(curl, CURLOPT_TCP_KEEPINTVL, 60L);
 
   curl_easy_perform(curl);
 }
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to