[squid-users] delay pools

Amos Jeffries squid3 at treenet.co.nz
Tue Jan 19 06:08:36 UTC 2016


On 19/01/2016 6:52 p.m., Alex Samad wrote:
> Hi
> 
> Is it possible to implement delay pools such that
> 
> if file is less than 10M
> then
>   allow 60Mb/s
> else
>   allow 20Mb/s
> fi
> 

There is no "file" in HTTP. Only messages.

Some messages have payloads. Sometimes those payload sizes are known
before they have finished arriving. Usually they are not. Sometimes
those payloads even match the size of a file being transferred with
HTTP. Usually they do not.

You could write a response header ACL to check how many digits there are
in the Content-Length headers. But that will only work sometimes, and
only get you an order-of-magnitue type of check. Which may be good
enough for what I think you are trying to do.

But you will needs Squid-4.0.2 or later for that, where bug 1139 has
been fixed.

Amos



More information about the squid-users mailing list