When a ChannelOutboundBuffer contains ByteBufs followed by a FileRegion, removeBytes() will fail with a ClassCastException. It should break the loop instead.
When a ChannelOutboundBuffer contains ByteBufs followed by a FileRegion, removeBytes() will fail with a ClassCastException. It should break the loop instead.