From: Alex Rousskov Date: Sat, 21 Jul 2012 04:12:30 +0000 (-0600) Subject: Account for Store disk client quota when bandwidth-limiting the server. X-Git-Tag: SQUID_3_1_21~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9833e8822dcd5bf817d58ccc0df632005118f304;p=thirdparty%2Fsquid.git Account for Store disk client quota when bandwidth-limiting the server. It is not clear why the store client type matters when MemObject::mostBytesAllowed() is trying to find the maximum delay pool quota for reading from the next hop HTTP server. Whether the client(s) are reading from disk or RAM, the corresponding server-side bandwidth ought to be limited. This code was removed as a part of bug 3462 investigation, but it is not needed to fix bug 3462. --- diff --git a/src/MemObject.cc b/src/MemObject.cc index 4684332334..d0ca9b0419 100644 --- a/src/MemObject.cc +++ b/src/MemObject.cc @@ -438,10 +438,6 @@ MemObject::mostBytesAllowed() const #endif - if (sc->getType() != STORE_MEM_CLIENT) - /* reading off disk */ - continue; - j = sc->delayId.bytesWanted(0, sc->copyInto.length); if (j > jmax) {