Re: [squid-users] Cancelled downloads

From: Carlos Lopez <the_spide21_at_yahoo.com>
Date: Wed, 24 Mar 2010 21:26:20 -0700 (PDT)

Hi, I have the same situation with users on my site, they download many BIG files and then cancel them, eventhough I set some delay pools so they get bured, but the big files are kept by squid and the HD is getting full. Is there any solution to solve it, thru SQUID?. Carlos --- El sáb, 3/20/10, Marcello Romani <mromani@ottotecnica.com> escribió: > De: Marcello Romani <mromani@ottotecnica.com> > Asunto: Re: [squid-users] Cancelled downloads > A: squid-users@squid-cache.org > Fecha: sábado, 20 de marzo de 2010, 04:51 pm > Marcello Romani ha scritto: > > CASALI COMPUTERS - Michele Brodoloni ha scritto: > >> Hello, > >> is it possible to stop squid from keep downloading > a file when a user stops the download from his browser? > >> If an user initiates a 1GB of web download and > then hits “cancel”, squid doesn’t mind it and > continues to download until it finishes, and this is a waste > of bandwidth. > >> > >> Is there a solution for this behavior? > >> > >> Thanks > >> > > > > Hallo, > >     I have the same problem here. > I have set quick_abort_min and _max to 0 to avoid any > (useless, in my situation) download. > > > > But what to do with downloads that have been > interrupted before the config change ? > > > > I.e., I have now 5-6 huge iso file that are beign > downloaded by squid as leftover from previous interrupted > downloads. > > > > Can I tell squid to abort them via some kind of > administrative interface (cachemgr doesn't seem to provie > such command) or should I go the iptables route ? > > > > Thanks in advance. > > > > Ok, just for reference: I dig'ed the sites hosting those > iso files and set up some iptables rules in the INPUT chain > to block tcp/80 traffic coming from them, plus some OUPUT > chain rules to block outgoing traffic as well. > Within seconds the wan traffic decreased even though I did > not put those rules on the gateway, only on the squid host. > After some time squid dropped the connection, probably due > to a timeout, and I deleted the blocking rules. > > This way I've been able to "cancel" ongoing downloads > without restarting squid. > > Marcello > ____________________________________________________________________________________ ¡Obtén la mejor experiencia en la web! Descarga gratis el nuevo Internet Explorer 8. http://downloads.yahoo.com/ieak8/?l=e1
Received on Thu Mar 25 2010 - 04:26:27 MDT

This archive was generated by hypermail 2.2.0 : Thu Mar 25 2010 - 12:00:07 MDT