AIO: Act on the right ByteBuf when a exception was caught during write
This commit is contained in:
parent
e157ea1a66
commit
d233be7041
@ -224,7 +224,7 @@ public class AioSocketChannel extends AbstractAioChannel implements SocketChanne
|
|||||||
channel.notifyFlushFutures(cause);
|
channel.notifyFlushFutures(cause);
|
||||||
channel.pipeline().fireExceptionCaught(cause);
|
channel.pipeline().fireExceptionCaught(cause);
|
||||||
|
|
||||||
ByteBuf buf = channel.pipeline().outboundByteBuffer();
|
ByteBuf buf = channel.unsafe().directOutboundContext().outboundByteBuffer();
|
||||||
if (!buf.readable()) {
|
if (!buf.readable()) {
|
||||||
buf.discardReadBytes();
|
buf.discardReadBytes();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user