From: hno <> Date: Thu, 27 Dec 2007 09:12:16 +0000 (+0000) Subject: Bug #2018: dead_peer_timeout fails to declare peer dead X-Git-Tag: BASIC_TPROXY4~223 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5537c535a8eb5aa9e2a491c01ae2d189905e4120;p=thirdparty%2Fsquid.git 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 df2aee9044..e7fbc84884 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -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; }