mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
--keepalive-time: warn if not supported properly
Since the feature requires support for TCP_KEEPIDLE and TCP_KEEPINTVL to function as documented, it now warns if that support is missing when the option is used.
This commit is contained in:
parent
61fc9044c7
commit
3bb1291fbd
@ -1764,6 +1764,10 @@ static int sockoptcallback(void *clientp, curl_socket_t curlfd,
|
||||
warnf(clientp, "Could not set TCP_KEEPINTVL!\n");
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
#if !defined(TCP_KEEPIDLE) || !defined(TCP_KEEPINTVL)
|
||||
warnf(clientp, "Keep-alive functionality somewhat crippled due to "
|
||||
"missing support in your operating system!\n");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user