On Thursday, April 20, 2017 at 3:02:49 AM UTC-7, Sharjeel Ali Shaukat wrote: > > Please help regarding bandwidth , how user usage of bandwidth should taken > from web2py application , application requirement is to check the bandwidth > size consumed per logged in user >
This seems like something you'd have to get from the front end (Apache? Nginx?). I would think that the front end would have a way to communicate this to the application, where it could be recorded, but I don't know any details. The application should be able to estimate how many bytes it might send to the user (that would be volume, not rate) but only for the parts it is responsible for, and not any bytes the front end might use to wrap the response. The size of a file being downloaded is easily available, the size of a dynamically generated response (forms, query results, etc) might be more fiddly to track. /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

