]> granicus.if.org Git - curl/commitdiff
opts: improved the TCP keepalive examples
authorEgon Eckert <egon.eckert@heaven-industries.com>
Fri, 8 May 2015 06:26:37 +0000 (08:26 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 8 May 2015 06:27:19 +0000 (08:27 +0200)
docs/libcurl/opts/CURLOPT_TCP_KEEPALIVE.3
docs/libcurl/opts/CURLOPT_TCP_KEEPIDLE.3
docs/libcurl/opts/CURLOPT_TCP_KEEPINTVL.3

index 5ddadd093494d4aed23912611b6f9b089f1cb9ae..941cc4882febaaf5f01faba321c59eb880919f92 100644 (file)
@@ -50,7 +50,7 @@ if(curl) {
   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);
 }
index 843f65057d29d2a284714d34519dc913133ef1a0..d60a3dffbcf576cf42ee5fcd6bdaa177ea9a7f7f 100644 (file)
@@ -48,7 +48,7 @@ if(curl) {
   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);
 }
index ee4d53543f1b18a1d9a9d4c178167896c1f7df42..42bc0b4edc610887379e51c458022a10b76a1f8a 100644 (file)
@@ -46,7 +46,7 @@ if(curl) {
   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);
 }