From: wessels <> Date: Sat, 25 Jul 1998 05:59:06 +0000 (+0000) Subject: statObjects: don't fill up too far ahead of the client X-Git-Tag: SQUID_3_0_PRE1~2981 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=562b34ae12b3f8d897ff36afae28c628a3e4d5c6;p=thirdparty%2Fsquid.git statObjects: don't fill up too far ahead of the client --- diff --git a/src/stat.cc b/src/stat.cc index 5e5754d73d..96e7307b15 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -1,6 +1,6 @@ /* - * $Id: stat.cc,v 1.268 1998/07/23 03:29:03 wessels Exp $ + * $Id: stat.cc,v 1.269 1998/07/24 23:59:06 wessels Exp $ * * DEBUG: section 18 Cache Manager Statistics * AUTHOR: Harvest Derived @@ -308,6 +308,9 @@ statObjects(void *data) storeUnlockObject(state->sentry); cbdataFree(state); return; + } else if (fwdCheckDeferRead(-1, state->sentry)) { + eventAdd("statObjects", statObjects, state, 0.1, 1); + return; } storeBuffer(state->sentry); debug(49, 3) ("statObjects: Bucket #%d\n", state->bucket);