Fix check to clear READ_OP and EPOLLIN. Part of [#2254]
This commit is contained in:
parent
b00e2a19d3
commit
c538fd5098
@ -123,7 +123,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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -608,7 +608,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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -152,7 +152,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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,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