Re: [Rabbit-proxy-development] Getting Contentlength
Brought to you by:
ernimril
From: <ISc...@gm...> - 2007-01-08 07:20:55
|
Hello Robert, 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. Greetings Ingo -------- Original-Nachricht -------- Datum: Sun, 07 Jan 2007 22:17:45 +0100 Von: Robert Olofsson <ro...@kh...> An: "Ingo Schröder" <isc...@gm...> Betreff: Re: [Rabbit-proxy-development] Getting Contentlength > Ingo Schröder wrote: > > thanks for the quick answer. So the TrafficLogger would be my friend. > > After searching the source, I found 2 places, where the traffic is > > logged (ResouceHandlerBase and WebConnectionResourceSource). > > The traffic is logged in more places. > Tunnel: logs two ways. > WebConnectionResourceSource: logs data read from the net. > TransferHandler: logs data transferred (cache->client). > BlockSender: logs data sent, can be either client or server. > HttpHeaderReader: logs data read, can be either client or server. > BaseMetaHandler: logs proxy->client data, probably not interesting. > > I may have missed one or two cases... > > If you are ok to update the counters only at the end of each > request you can look at: Connection.logConnection(), it updates > the proxy statistics after each handled request. > > > I want to assign the traffic to the connection. Would the > > ResourceHandlerBase the right place to do this? > > Probably not, depends on what you mean by "connection" and what > you want to use the data for. > > /robo -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer |