From: wessels <> Date: Wed, 27 May 1998 01:12:21 +0000 (+0000) Subject: comments X-Git-Tag: SQUID_3_0_PRE1~3251 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=009730dc043fff34ee6b9f2302129d0be8bab639;p=thirdparty%2Fsquid.git comments --- diff --git a/src/net_db.cc b/src/net_db.cc index fc978632a2..f0c3d0ee94 100644 --- a/src/net_db.cc +++ b/src/net_db.cc @@ -1,6 +1,6 @@ /* - * $Id: net_db.cc,v 1.109 1998/05/26 19:08:57 wessels Exp $ + * $Id: net_db.cc,v 1.110 1998/05/26 19:12:21 wessels Exp $ * * DEBUG: section 37 Network Measurement Database * AUTHOR: Duane Wessels @@ -574,7 +574,11 @@ netdbExchangeHandleReply(void *data, char *buf, ssize_t size) ex->used += rec_sz; size -= rec_sz; p += rec_sz; - if (++nused == 10) + /* + * This is a fairly cpu-intensive loop, break after adding + * just a few + */ + if (++nused == 20) break; } debug(37, 3) ("netdbExchangeHandleReply: used %d entries, (x %d bytes) == %d bytes total\n",