From: wessels <> Date: Tue, 12 May 1998 02:35:32 +0000 (+0000) Subject: don't exchange too-large RTTs (it broke inet_htons()). X-Git-Tag: SQUID_3_0_PRE1~3343 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67a863b698b375d099b64a0f9606aace5dfa83f5;p=thirdparty%2Fsquid.git don't exchange too-large RTTs (it broke inet_htons()). Limit at 60 seconds --- diff --git a/src/net_db.cc b/src/net_db.cc index 5bae8183f8..6db765731f 100644 --- a/src/net_db.cc +++ b/src/net_db.cc @@ -1,6 +1,6 @@ /* - * $Id: net_db.cc,v 1.98 1998/05/11 18:44:43 rousskov Exp $ + * $Id: net_db.cc,v 1.99 1998/05/11 20:35:32 wessels Exp $ * * DEBUG: section 37 Network Measurement Database * AUTHOR: Duane Wessels @@ -997,6 +997,8 @@ netdbBinaryExchange(StoreEntry * s) next = (netdbEntry *) hash_next(addr_table); if (0.0 == n->rtt) continue; + if (n->rtt > 60000) /* RTT > 1 MIN probably bogus */ + continue; if (!safe_inet_addr(n->network, &addr)) continue; buf[i++] = (char) NETDB_EX_NETWORK;