mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05: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