summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-02-10 22:21:57 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-02-10 22:24:15 +0100
commit3bb1291fbd4f938bb9b7b3c2fe48b029ee0152d3 (patch)
treeac5445e408c62e4cc834d73379d0ad91c56d0a37 /src
parent61fc9044c715f091587d35d29d041c3c733d847c (diff)
downloadcurl-3bb1291fbd4f938bb9b7b3c2fe48b029ee0152d3.tar.gz
--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.
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index cfff1f982..1c707f89f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1765,6 +1765,10 @@ static int sockoptcallback(void *clientp, curl_socket_t curlfd,
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
}
}
break;