From: wessels <> Date: Sat, 4 Apr 1998 14:47:51 +0000 (+0000) Subject: fake up last reply time to avoid frequent DEAD/REVIVED messages X-Git-Tag: SQUID_3_0_PRE1~3628 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a17aae5235ca454eb4759d3e4a9c8bdc748fbc98;p=thirdparty%2Fsquid.git fake up last reply time to avoid frequent DEAD/REVIVED messages --- diff --git a/src/neighbors.cc b/src/neighbors.cc index 6028dea941..8150143707 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -1,6 +1,6 @@ /* - * $Id: neighbors.cc,v 1.190 1998/04/03 18:07:31 wessels Exp $ + * $Id: neighbors.cc,v 1.191 1998/04/04 07:47:51 wessels Exp $ * * DEBUG: section 15 Neighbor Routines * AUTHOR: Harvest Derived @@ -766,8 +766,10 @@ neighborUp(const peer * p) { if (!p->tcp_up) return 0; - if (squid_curtime - p->stats.last_query > Config.Timeout.deadPeer) + if (squid_curtime - p->stats.last_query > Config.Timeout.deadPeer) { + p->stats.last_reply = squid_curtime; /* fake! */ return 1; + } if (p->stats.last_query - p->stats.last_reply >= Config.Timeout.deadPeer) return 0; return 1;