mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 15:50:48 -04:00
opts: improved the TCP keepalive examples
This commit is contained in:
parent
f010f3e3ca
commit
8936a23f51
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user