]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: hno
authoramosjeffries <>
Mon, 25 Feb 2008 09:55:16 +0000 (09:55 +0000)
committeramosjeffries <>
Mon, 25 Feb 2008 09:55:16 +0000 (09:55 +0000)
Bug #2018: dead_peer_timeout fails to declare peer dead

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 b4e919eef842dfa9498031876b23c52837891995..63e94a6cec69baff3bc0b029d3724a4cad2d7ae9 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: neighbors.cc,v 1.350 2007/11/13 23:25:34 rousskov Exp $
+ * $Id: neighbors.cc,v 1.350.2.1 2008/02/25 02:55:16 amosjeffries Exp $
  *
  * DEBUG: section 15    Neighbor Routines
  * AUTHOR: Harvest Derived
@@ -239,9 +239,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;
 }