ByteBridge.flush() does not flush anything if the target buffer is not writable but expandable
- Fixes #1055
This commit is contained in:
parent
d68a04a879
commit
dc43c2d8a9
@ -1651,7 +1651,7 @@ final class DefaultChannelHandlerContext extends DefaultAttributeMap implements
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void flush(ByteBuf out) {
|
private void flush(ByteBuf out) {
|
||||||
while (out.isWritable()) {
|
while (out.maxCapacity() != out.writerIndex()) {
|
||||||
ByteBuf data = exchangeBuf.peek();
|
ByteBuf data = exchangeBuf.peek();
|
||||||
if (data == null) {
|
if (data == null) {
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user