netty/netty — pull request #848 by lw346 (2012-12-23 19:33:50+00:00)
Title: Port traffic package to 4.0

Copies over the traffic package as per issue #690.

The only _major_ difference is that instead of passing in a Timer, the underlying EventExecutor is used where possible. I don't know if that fits with expectations, but it should be easy enough to modify it back to using a separate Timer.

I also noticed that there's a bug in the TrafficCounter on line 158 - the timer reference is locally overriden, instead of the one on the actual TrafficCounter instance as desired. This fix should probably be backported to 3?