Re: [Rabbit-proxy-development] Getting Contentlength
Brought to you by:
ernimril
From: Robert O. <ro...@kh...> - 2007-01-08 21:11:24
|
Ingo Schr=F6der wrote: > my first interest would be getting all the traffic from the client to > the proxy. I would like to filter all the clients sending more than > 512 kB as a fileupload for example. Ok, there is no easy way to do that at the moment, you have to add some code. Here is what I would do: 1) create a class that implements TrafficLogger, maybe taking a Connection in its constructor. 2) Add Connection as a parameter to TrafficLoggerHandler 3) Change the client-parameter to be the class from 1. Does that help? There are still a few things to think about here: 1) Chunked uploads will count the bytes transferred, not the resource size. 2) Multipart uploads will count the bytes transferred, there may be many resources in the upload. Does that help? /robo |