]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #2018: dead_peer_timeout fails to declare peer dead
authorhno <>
Thu, 27 Dec 2007 09:12:16 +0000 (09:12 +0000)
committerhno <>
Thu, 27 Dec 2007 09:12:16 +0000 (09:12 +0000)
Even if dead_peer_timeout has passed Squid continued sending ICP queries
to the peer at full request speed, and waiting for responses.

src/neighbors.cc

index df2aee9044dcc895a9739a2e7196b9eb133f2067..e7fbc848844a2237039278f7593c5ff7237bfaba 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: neighbors.cc,v 1.351 2007/12/14 23:11:47 amosjeffries Exp $
+ * $Id: neighbors.cc,v 1.352 2007/12/27 02:12:16 hno Exp $
  *
  * DEBUG: section 15    Neighbor Routines
  * AUTHOR: Harvest Derived
@@ -235,9 +235,8 @@ peerWouldBePinged(const peer * p, HttpRequest * request)
     if (squid_curtime - p->stats.last_query > Config.Timeout.deadPeer)
         return 1;
 
-    if (p->icp.port == echo_port)
-        if (!neighborUp(p))
-            return 0;
+    if (!neighborUp(p))
+        return 0;
 
     return 1;
 }