On Sat, Jul 24, 2010 at 11:22 PM, Amos Jeffries <squid3@xxxxxxxxxxxxx> wrote: > Leonardo Carneiro wrote: >> >> Hi Amos. If i create a bucket with the size of 100mb and a >> regeneration rate of 0, wouldn't i be using some kind of quota? I >> mean, when the user overpasses 100mb, he would not download anything >> else i think. > > Delay pools are designed a bytes-per-second limit. > > Your proposed pool can look like a quota but it has no fixed times involved > anywhere. Quotas as asked for require reset points longer than one second. > (Which shows the small design change need to make them do quotas, but that > still needs coding.) > > The user disappears for a short while and it's reset. But.... > * you have no control over that reset time period. Its based on the users > regularity of usage, more particularly their regularity of usage of the > pool. > * if they re-appear near the end of the time period its extended! > ie a 'daily' pool for a heavy user (maximum pool duration) where user logs > in late one day at say 9am and use that days pool up. Then next day they log > in at their regular 7am and find themselves without access for a whole extra > day. > * it cannot be set more than ~4MB pool size (32-bit signed integer of > bytes), in Squid older than 3.1 > > Amos > -- > Please be using > Current Stable Squid 2.7.STABLE9 or 3.1.5 > Yeah, i got it now. As you said, it's not that far from a true quota feature, but still needs coding. Tks for explanation.