Fix check to clear READ_OP and EPOLLIN. Part of [#2254]
This commit is contained in:
parent
52535a12f8
commit
01cd5929da
@ -132,7 +132,7 @@ public final class EpollServerSocketChannel extends AbstractEpollChannel impleme
|
|||||||
// * The user called Channel.read() or ChannelHandlerContext.read() in channelReadComplete(...) method
|
// * The user called Channel.read() or ChannelHandlerContext.read() in channelReadComplete(...) method
|
||||||
//
|
//
|
||||||
// See https://github.com/netty/netty/issues/2254
|
// See https://github.com/netty/netty/issues/2254
|
||||||
if (config.isAutoRead() && !readPending) {
|
if (!config.isAutoRead() && !readPending) {
|
||||||
clearEpollIn();
|
clearEpollIn();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -648,7 +648,7 @@ public final class EpollSocketChannel extends AbstractEpollChannel implements So
|
|||||||
// * The user called Channel.read() or ChannelHandlerContext.read() in channelReadComplete(...) method
|
// * The user called Channel.read() or ChannelHandlerContext.read() in channelReadComplete(...) method
|
||||||
//
|
//
|
||||||
// See https://github.com/netty/netty/issues/2254
|
// See https://github.com/netty/netty/issues/2254
|
||||||
if (config.isAutoRead() && !readPending) {
|
if (!config.isAutoRead() && !readPending) {
|
||||||
clearEpollIn();
|
clearEpollIn();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -153,7 +153,7 @@ public abstract class AbstractNioByteChannel extends AbstractNioChannel {
|
|||||||
// * The user called Channel.read() or ChannelHandlerContext.read() in channelReadComplete(...) method
|
// * The user called Channel.read() or ChannelHandlerContext.read() in channelReadComplete(...) method
|
||||||
//
|
//
|
||||||
// See https://github.com/netty/netty/issues/2254
|
// See https://github.com/netty/netty/issues/2254
|
||||||
if (config.isAutoRead() && !readPending) {
|
if (!config.isAutoRead() && !readPending) {
|
||||||
removeReadOp();
|
removeReadOp();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -111,7 +111,7 @@ public abstract class AbstractNioMessageChannel extends AbstractNioChannel {
|
|||||||
// * The user called Channel.read() or ChannelHandlerContext.read() in channelReadComplete(...) method
|
// * The user called Channel.read() or ChannelHandlerContext.read() in channelReadComplete(...) method
|
||||||
//
|
//
|
||||||
// See https://github.com/netty/netty/issues/2254
|
// See https://github.com/netty/netty/issues/2254
|
||||||
if (config.isAutoRead() && !readPending) {
|
if (!config.isAutoRead() && !readPending) {
|
||||||
removeReadOp();
|
removeReadOp();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user