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