-do not log EPIPE
authorChristian Grothoff <christian@grothoff.org>
Mon, 26 Sep 2016 18:53:14 +0000 (18:53 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 26 Sep 2016 18:53:14 +0000 (18:53 +0000)
src/util/service_new.c

index 95bdca33bbc7de35243b9bab6bbc25f5eb5e828e..9981ae4c6d322e5a3d862590a156a5a74bd3b5cd 100644 (file)
@@ -1849,8 +1849,9 @@ do_send (void *cls)
     }
     else
     {
-      GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING,
-                          "send");
+      if (EPIPE != errno)
+        GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING,
+                             "send");
       GNUNET_MQ_inject_error (client->mq,
                              GNUNET_MQ_ERROR_WRITE);
       return;