]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Account for Store disk client quota when bandwidth-limiting the server.
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 18 Jun 2012 23:13:05 +0000 (17:13 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 18 Jun 2012 23:13:05 +0000 (17:13 -0600)
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.

src/MemObject.cc

index 1cf74b8e942a70fc619131c8da06ce0985e4a0fa..5e677ccbd17d3ec5bcab397de1c12a598d6dc3d3 100644 (file)
@@ -477,10 +477,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) {