Commit 3bb1291f authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

--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.
parent 61fc9044
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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
      }
    }