Re: [squid-users] Re: delay pools starvation

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 22 Apr 2004 01:42:54 +0200 (CEST)

On Wed, 21 Apr 2004, Bar wrote:

> Parameter maxconn is matched against all connections from ip irrespective of
> delay pool number
> used or request not going through delay pool.

Yes, but there is no problem using the same list of acls as you use in
delay_access to limit the number of connections before accepting the
request, and you can define multiple different maxconn acls.

> acl conlimit maxcon 1
> acl downloads urlpath_regex \.zip$ \.mp3$ ......
> delay pools 2
> delay_class 1 1
> delay_class 2 1
> delay_access 1 allow downloads conlimit
> delay_access 1 deny all
> delay_access 2 allow downloads
> delay_parameters 1 35000/35000
> delay_parameters 2 1000/1000
>
> Delay pool 1 will never be matched because browser open some connections.
> All downloads go through pool 2.

The conlimit check needs to go into http_access.

http_access deny downloads conlimit

Regards
Henrik
Received on Wed Apr 21 2004 - 17:42:56 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Apr 30 2004 - 12:00:02 MDT