--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:
Daniel Stenberg 2011-02-10 22:21:57 +01:00
parent 61fc9044c7
commit 3bb1291fbd

View File

@ -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
}
}