check here as well
authorChristian Grothoff <christian@grothoff.org>
Mon, 26 Oct 2009 11:59:39 +0000 (11:59 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 26 Oct 2009 11:59:39 +0000 (11:59 +0000)
src/util/network.c

index d3e93a8d58a188622b2ed17b1ae38cd5a7cf93cb..30519fe382070b42761df25d292d44bb04fffc06 100644 (file)
@@ -155,7 +155,10 @@ socket_set_nodelay (const struct GNUNET_NETWORK_Handle
                    *h)\r
 {\r
   int value = 1;\r
-  setsockopt (h->fd, IPPROTO_TCP, TCP_NODELAY, &value, sizeof(value));\r
+  if (0 != setsockopt (h->fd, IPPROTO_TCP, TCP_NODELAY, &value, sizeof(value)))\r
+    GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING,\r
+                        "setsockopt");\r
+\r
 }\r
 \r
 \r