]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
statObjects: don't fill up too far ahead of the client
authorwessels <>
Sat, 25 Jul 1998 05:59:06 +0000 (05:59 +0000)
committerwessels <>
Sat, 25 Jul 1998 05:59:06 +0000 (05:59 +0000)
src/stat.cc

index 5e5754d73d542b720b82949417e1ece675c0db38..96e7307b15e82c9a92a447ef9e3683d3e7cb7555 100644 (file)
@@ -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);