From: wessels <> Date: Fri, 29 May 1998 03:50:17 +0000 (+0000) Subject: dont print sendto errors on linux X-Git-Tag: SQUID_3_0_PRE1~3218 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=17d51783e7fc83643a20411a0f4a9411f13ff243;p=thirdparty%2Fsquid.git dont print sendto errors on linux --- diff --git a/src/comm.cc b/src/comm.cc index 7d0fbfcbc9..4d8c8757dd 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1,7 +1,7 @@ /* - * $Id: comm.cc,v 1.262 1998/05/28 04:44:01 wessels Exp $ + * $Id: comm.cc,v 1.263 1998/05/28 21:50:17 wessels Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -714,11 +714,14 @@ comm_udp_sendto(int fd, int x; x = sendto(fd, buf, len, 0, (struct sockaddr *) to_addr, addr_len); if (x < 0) { - debug(50, 1) ("comm_udp_sendto: FD %d, %s, port %d: %s\n", - fd, - inet_ntoa(to_addr->sin_addr), - (int) htons(to_addr->sin_port), - xstrerror()); +#ifdef _SQUID_LINUX_ + if (ECONNREFUSED != errno) +#endif + debug(50, 1) ("comm_udp_sendto: FD %d, %s, port %d: %s\n", + fd, + inet_ntoa(to_addr->sin_addr), + (int) htons(to_addr->sin_port), + xstrerror()); return COMM_ERROR; } return x;