Re: Bandwith limit/per user from mysql

2009-12-08 Thread Ray Morris
> This kind of functionality, in my opinion, is better > implemented at transport level and not at application level. Yes, well that was the main problem , doing it per user, of course i have on the DB the ips of the users when they login, i even update that, but you know how ips are, co

Re: Bandwith limit/per user from mysql

2009-12-08 Thread partysoft
Did anyone tried mod_bw or mod_cband , or maybe other mods like these? i still don't know how the hell those could solve my problem , at least partialy.. none of those connect with a SQL db.. they make the decisions upon a conf file , for the whole vhost.. i can identify the users from the URL

Re: Bandwith limit/per user from mysql

2009-12-08 Thread partysoft
Yes, well that was the main problem , doing it per user, of course i have on the DB the ips of the users when they login, i even update that, but you know how ips are, constantly changing, even more, they can be under NAT on some private network, but no doubt making it under a lower OSI level wou

Re: Bandwith limit/per user from mysql

2009-12-08 Thread partysoft
No, not every bit, but to limit somehow , per user how much he can use for download it's a simple mp3 service, not something fancy so i can even count per 1MB or so, or even a larger scale.. right now i'm counting every download, (with resume support and multiple connections) but if the user s

Re: Linking in libraries to Apache Module

2009-12-08 Thread Devin Ceartas
OK, got it. Understood. Good point, will do. :-) devin On Dec 7, 2009, at 11:31 PM, Ray Morris wrote: So, for what it's worth, it ends up that it will work with either the direct linking as I was trying or with LoadFile It will work FOR NOW, on that ONE SERVER, if you directly link a librar

Re: Generating a lot of data in content handler

2009-12-08 Thread Nick Kew
On 8 Dec 2009, at 12:26, Kevac Marko wrote: > Hello. > > I am doing a lot of ap_rprintf(r, ...) in my content handler, > generating more than tens of megabytes of data per request. I suppose > all this data is kept in r->pool, which is freed after request. So if > one user consume 20 MiB, hundre

Generating a lot of data in content handler

2009-12-08 Thread Kevac Marko
Hello. I am doing a lot of ap_rprintf(r, ...) in my content handler, generating more than tens of megabytes of data per request. I suppose all this data is kept in r->pool, which is freed after request. So if one user consume 20 MiB, hundred will consume 2 GiB. How can I generate a lot of data wi

Re: Bandwith limit/per user from mysql

2009-12-08 Thread Sorin Manolache
On Tue, Dec 8, 2009 at 05:11, partysoft wrote: > > I am looking for a solution to limit the bandwith for the users of a site > that have access to some mp3 / subscription. I don't want to serve files > through PHP, but directly with some apache module.. > do i have to count every bit? or how this