sön 2009-06-14 klockan 06:23 +0300 skrev MonzT:
> I want to know if there is any way to limit maximum connection per FILE or
> URL not just client ip.
Not in squid, at least not without first adding the feature.
> The usual 'maxconn' command limits connection by ip which is not what we
> want in most cases, because some browsers make multiple connections to get
> the whole page and this doesn't affect the bandwidth as these connections
> are for small objects,
Because the user have once installed a "download accelerator".. most
these change the registry settings to pretty much unlimited concurrent
connections from the default 2..
> the problem is when some one download a 1.5 GB file with 16 connection using
> IDM or Flashget or something,
Yes.
> I think limiting connection per file or requested url will be the best,
> so I was wondering if there is any way to achieve this, or any hint to edit
> source code
Regarding source I think a good starting point is to look at the maxconn
acl. The big part is coming up with a method for detecting these
concurrent requests correctly. Discussions on this is best done on the
squid-dev list.
Regards
Henrik
Received on Mon Jun 29 2009 - 20:24:02 MDT
This archive was generated by hypermail 2.2.0 : Tue Jun 30 2009 - 12:00:04 MDT