Re: [Rabbit-proxy-development] Getting Contentlength
Brought to you by:
ernimril
From: Robert O. <ro...@kh...> - 2007-01-07 21:18:05
|
Ingo Schr=F6der wrote: > thanks for the quick answer. So the TrafficLogger would be my friend.=20 > After searching the source, I found 2 places, where the traffic is=20 > logged (ResouceHandlerBase and WebConnectionResourceSource). =20 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=20 > 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 |