]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bugzilla #655: icmpRecv: recv: (11) Resource temporarily unavailable
authorwessels <>
Fri, 13 Jun 2003 05:54:17 +0000 (05:54 +0000)
committerwessels <>
Fri, 13 Jun 2003 05:54:17 +0000 (05:54 +0000)
Handle the case when recv() returns EAGAIN and do not treat it
like an error.

src/icmp.cc

index c941436b26792f7e3f269520b0f3e82dc07536c0..7377d1e0f58fff8a37855540c60819315005e845 100644 (file)
@@ -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)