netty/netty — pull request #1702 by normanmaurer (2013-08-05 13:22:18+00:00)
Title: Correctly update Channel.isWritable() when the write happens from outsid...

...e the EventLoop in a fast fashion. Fixes [#1697]

Introduce a new interface called MessageSizeEstimator. This can be specific per Channel (via ChannelConfig). The MessageSizeEstimator will be used to estimate for a message that should be written. The default implementation handles ByteBuf, ByteBufHolder and FileRegion. A user is free to plug-in his/her own implementation for different behaviour.