From 49c318a2342149ff821e4dea2f51c2a2053b7e49 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 26 Oct 2009 11:59:39 +0000 Subject: [PATCH] check here as well --- src/util/network.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util/network.c b/src/util/network.c index d3e93a8d5..30519fe38 100644 --- a/src/util/network.c +++ b/src/util/network.c @@ -155,7 +155,10 @@ socket_set_nodelay (const struct GNUNET_NETWORK_Handle *h) { int value = 1; - setsockopt (h->fd, IPPROTO_TCP, TCP_NODELAY, &value, sizeof(value)); + if (0 != setsockopt (h->fd, IPPROTO_TCP, TCP_NODELAY, &value, sizeof(value))) + GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, + "setsockopt"); + } -- 2.25.1