From: hno <> Date: Thu, 15 Nov 2001 08:17:29 +0000 (+0000) Subject: Bugzilla #224 also present for HTCP X-Git-Tag: SQUID_3_0_PRE1~1289 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=508b33833238e92fcae4ae7b3753118ee3835aae;p=thirdparty%2Fsquid.git Bugzilla #224 also present for HTCP --- diff --git a/src/peer_select.cc b/src/peer_select.cc index 1309c62d1a..0becece3b7 100644 --- a/src/peer_select.cc +++ b/src/peer_select.cc @@ -1,6 +1,6 @@ /* - * $Id: peer_select.cc,v 1.117 2001/11/15 01:15:45 hno Exp $ + * $Id: peer_select.cc,v 1.118 2001/11/15 01:17:29 hno Exp $ * * DEBUG: section 44 Peer Selection Algorithm * AUTHOR: Duane Wessels @@ -623,7 +623,8 @@ peerHtcpParentMiss(peer * p, htcpReplyData * htcp, ps_state * ps) if (ps->closest_parent_miss.sin_addr.s_addr != any_addr.s_addr) return; rtt = tvSubMsec(ps->ping.start, current_time) / p->weight; - if (ps->ping.w_rtt == 0 || rtt < ps->ping.w_rtt) { + if (ps->first_parent_miss.sin_addr.s_addr == any_addr.s_addr || + rtt < ps->ping.w_rtt) { ps->first_parent_miss = p->in_addr; ps->ping.w_rtt = rtt; }