summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-12-03 09:53:53 +0100
committerDaniel Stenberg <daniel@haxx.se>2015-12-03 09:55:00 +0100
commitf6064354195bac99f072783cd5b8ea8ac44f34df (patch)
treefee7e172ee9e9f1edd155804227737068d411d7f /src
parent5eba895b4ca5bcc7922ce38ecfc994dfece69bd9 (diff)
downloadcurl-f6064354195bac99f072783cd5b8ea8ac44f34df.tar.gz
curl: remove keepalive #ifdef checks done on libcurl's behalf
They didn't match the ifdef logic used within libcurl anyway so they could indeed warn for the wrong case - plus the tool cannot know how the lib actually performs at that level.
Diffstat (limited to 'src')
-rw-r--r--src/tool_operate.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 66ab0fabb..d5177d92b 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -1262,10 +1262,6 @@ static CURLcode operate_do(struct GlobalConfig *global,
if(!config->nokeepalive) {
my_setopt(curl, CURLOPT_TCP_KEEPALIVE, 1L);
if(config->alivetime != 0) {
-#if !defined(TCP_KEEPIDLE) || !defined(TCP_KEEPINTVL)
- warnf(config->global, "Keep-alive functionality somewhat crippled "
- "due to missing support in your operating system!\n");
-#endif
my_setopt(curl, CURLOPT_TCP_KEEPIDLE, config->alivetime);
my_setopt(curl, CURLOPT_TCP_KEEPINTVL, config->alivetime);
}