From: amosjeffries <> Date: Mon, 25 Feb 2008 09:55:16 +0000 (+0000) Subject: Author: hno X-Git-Tag: SQUID_3_0_STABLE2~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf00d8ad7272ca56c9b1e03884331fabb5838bad;p=thirdparty%2Fsquid.git Author: hno 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. --- diff --git a/src/neighbors.cc b/src/neighbors.cc index b4e919eef8..63e94a6cec 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -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; }