aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-25 14:01:01 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-25 14:01:01 +0000
commite21104a8650a68601a5aaf350c4df5a0f6f38db5 (patch)
tree3292345ee3d63bc9ad601e78406e9e22c57f3fb1 /lib
parent3ecf63fa66e268c8a76996f8d453cca12cfae324 (diff)
only output one line about the nodelay even if it fails
Diffstat (limited to 'lib')
-rw-r--r--lib/connect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c
index eb003c28f..7ac47bff2 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -484,10 +484,11 @@ static void Curl_setNoDelay(struct connectdata *conn,
#ifdef TCP_NODELAY
struct SessionHandle *data= conn->data;
socklen_t onoff = (socklen_t) data->tcp_nodelay;
- infof(data,"Setting TCP_NODELAY for IPv%d\n", ip);
if(setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, &onoff, sizeof(onoff)) < 0)
infof(data, "Could not set TCP_NODELAY: %s\n",
Curl_strerror(conn, Curl_ourerrno()));
+ else
+ infof(data,"TCP_NODELAY set for IPv%d\n", ip);
#else
(void)conn;
(void)sockfd;