From: wessels <> Date: Fri, 13 Jun 2003 05:54:17 +0000 (+0000) Subject: Bugzilla #655: icmpRecv: recv: (11) Resource temporarily unavailable X-Git-Tag: SQUID_3_0_PRE1~130 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e3c4292064f732f06e1948310009b13004125b37;p=thirdparty%2Fsquid.git Bugzilla #655: icmpRecv: recv: (11) Resource temporarily unavailable Handle the case when recv() returns EAGAIN and do not treat it like an error. --- diff --git a/src/icmp.cc b/src/icmp.cc index c941436b26..7377d1e0f5 100644 --- a/src/icmp.cc +++ b/src/icmp.cc @@ -1,6 +1,6 @@ /* - * $Id: icmp.cc,v 1.83 2003/02/21 22:50:09 robertc Exp $ + * $Id: icmp.cc,v 1.84 2003/06/12 23:54:17 wessels Exp $ * * DEBUG: section 37 ICMP Routines * AUTHOR: Duane Wessels @@ -89,7 +89,7 @@ icmpRecv(int unused1, void *unused2) sizeof(pingerReplyData), 0); - if (n < 0) { + if (n < 0 && EAGAIN != errno) { debug(37, 1) ("icmpRecv: recv: %s\n", xstrerror()); if (++fail_count == 10 || errno == ECONNREFUSED)