From: Christian Grothoff Date: Fri, 21 May 2010 09:08:42 +0000 (+0000) Subject: EPIPE is normal X-Git-Tag: initial-import-from-subversion-38251~21614 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4469ebfa6bff46d5ae1241156599fd3baf22d8f7;p=oweals%2Fgnunet.git EPIPE is normal --- diff --git a/src/arm/gnunet-service-manager.c b/src/arm/gnunet-service-manager.c index 43f560958..9c0fdcf5c 100644 --- a/src/arm/gnunet-service-manager.c +++ b/src/arm/gnunet-service-manager.c @@ -401,10 +401,11 @@ forwardToClient (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) fc->service_to_client_bufferDataLength); if (numberOfBytesSent <= 0) { - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, - "Failed to forward %u bytes of data to client: %s\n", - fc->service_to_client_bufferDataLength, - STRERROR (errno)); + if (errno != EPIPE) + GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + "Failed to forward %u bytes of data to client: %s\n", + fc->service_to_client_bufferDataLength, + STRERROR (errno)); closeClientAndServiceSockets (fc, REASON_SERVICE_TO_CLIENT); return; @@ -610,9 +611,10 @@ forwardToService (void *cls, } else { - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, - "Failed to forward data to service: %s\n", - STRERROR (errno)); + if (errno != EPIPE) + GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + "Failed to forward data to service: %s\n", + STRERROR (errno)); closeClientAndServiceSockets (fc, REASON_CLIENT_TO_SERVICE); }