From: wessels <> Date: Tue, 21 Apr 1998 22:40:50 +0000 (+0000) Subject: Move 'fake a recent reply' hack to before neighborUp() check. X-Git-Tag: SQUID_3_0_PRE1~3479 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47b780e11839b62f9df54ab3704f54baa2f9d414;p=thirdparty%2Fsquid.git Move 'fake a recent reply' hack to before neighborUp() check. Joe Ramey --- diff --git a/src/neighbors.cc b/src/neighbors.cc index 795cf42baf..13f9aec994 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -1,6 +1,6 @@ /* - * $Id: neighbors.cc,v 1.196 1998/04/10 22:57:34 rousskov Exp $ + * $Id: neighbors.cc,v 1.197 1998/04/21 16:40:50 wessels Exp $ * * DEBUG: section 15 Neighbor Routines * AUTHOR: Harvest Derived @@ -485,15 +485,15 @@ neighborsUdpPing(request_t * request, */ p->stats.last_reply = squid_curtime; (*exprep) += p->mcast.n_replies_expected; - } else if (neighborUp(p)) { - /* its alive, expect a reply from it */ - (*exprep)++; } else if (squid_curtime - p->stats.last_query > Config.Timeout.deadPeer) { /* * fake a recent reply if its been a long time since our * last query */ p->stats.last_reply = squid_curtime; + } else if (neighborUp(p)) { + /* its alive, expect a reply from it */ + (*exprep)++; } else { /* Neighbor is dead; ping it anyway, but don't expect a reply */ /* log it once at the threshold */