ByteBridge.flush() does not flush anything if the target buffer is not writable but expandable

- Fixes #1055
This commit is contained in:
Trustin Lee 2013-02-15 15:00:41 -08:00
parent d68a04a879
commit dc43c2d8a9

View File

@ -1651,7 +1651,7 @@ final class DefaultChannelHandlerContext extends DefaultAttributeMap implements
}
private void flush(ByteBuf out) {
while (out.isWritable()) {
while (out.maxCapacity() != out.writerIndex()) {
ByteBuf data = exchangeBuf.peek();
if (data == null) {
break;