netty/netty — Issue #89: Better handle FileRegion if SslHandler or ZlibEncoder is in the ChannelPipeline
Author: normanmaurer
Created: 2011-11-30 12:06:07+00:00
State: open

If the user writes a FileRegion via Channel.write(..) it will be directly passed to the Channel. This is even true if a SslHandler or a ZlibEncoder is in place. So the encoding / encrypting will be skipped silently. This makes sense if you know how the FileRegion is used but is not so simple to guess for most users.

We should provide a ChannelDownStreamHandler which will encoder the FileRegion to ChannelBuffers if a SslHandler or a ZlibEncoder is in the ChannelPipeline to make it more easy to use