[squid-users] doubt regarding delay_access

From: Dinil Divakaran <[email protected]>
Date: Sun, 20 Feb 2005 09:39:53 +0530 (IST)

Hello,

In the squid.conf file, it is said that,

# TAG: delay_access
# This is used to determine which delay pool a request falls into.
# The first matched delay pool is always used, i.e., if a request falls
# into delay pool number one, no more delay are checked, otherwise the
# rest are checked in order of their delay pool number until they have
# all been checked.

Now, given below is the squid.conf file that I use:
---------------------------------------------------

acl all src 0.0.0.0/0.0.0.0
acl allowed_hosts src 10.6.21.3/255.255.255.255
acl localhost src 127.0.0.1/255.255.255.255

delay_pools 2

delay_class 1 1
delay_class 2 1

delay_parameters 1 -1/-1 -1/-1
delay_parameters 2 8000/8000 8000/8000

delay_access 2 allow allowed_hosts
delay_access 1 allow localhost
delay_access 1 allow all

---------------------------------------------------

But, when I tested with this configuration, it was found that the machine with
IP 10.6.21.3 was able to download at a very high rate, indicating that it is
in class 1 delay pool (which contradicts the description for delay_access given
above.)

When I changed the delay_access lines as shown below, the machine 10.6.21.3 was
indeed restricted to rate around 8000 bytes per second.

--
delay_access 2 allow allowed_hosts
delay_access 2 deny all # new line added to the old config. above.
delay_access 1 allow localhost
delay_access 1 allow all
--
Is this confusion due to my misinterpretation or something to do with the 
explanation in the squid.conf file ?
Please advise.
Thanks and Regards,
Dinil
Received on Sat Feb 19 2005 - 21:09:37 MST

This archive was generated by hypermail pre-2.1.9 : Tue Mar 01 2005 - 12:00:02 MST