[squid-users] force full download and limit bandwith

Amos Jeffries squid3 at treenet.co.nz
Sun Jan 14 14:59:32 UTC 2018


On 15/01/18 03:23, joseph wrote:
> if the client   exit download  squid will force full speed on obj dose not
> stay  at that rate
> 
> acl limit_ext_bandwith url_regex \.esd \.exe
> delay_pools 1
> delay_class 1 1
> delay_parameters 1 128000/128000
> delay_access 1 allow limit_ext_bandwith
> delay_access 1 deny all
> 
> range_offset_limit -1 limit_ext_bandwith
> quick_abort_min -1
> quick_abort_max 0 KB
> quick_abort_pct 100
> 
> this work fine  it keep downloading 128KB   until the client exit squid will
> continue at full speed of the main bandwidth
> is it bug  or im missing something ??

No bug, that is how delay pools are designed. Squid always fetches as 
fast as it can so as to finish with the more expensive network resource 
(port numbers) faster and free them up for other traffic sooner.


> so i need to force cache full obj  at that specific rate  even if the client
> exit

Use QoS controls in your operating system for that. Delay pools in Squid 
were designed long before QoS existed. Modern TOS/QoS capabilities are 
much better than Squid can do.

Amos


More information about the squid-users mailing list