Fix check to clear READ_OP and EPOLLIN. Part of [#2254]

This commit is contained in:
Norman Maurer 2014-02-22 20:06:21 +01:00
parent 52535a12f8
commit 01cd5929da
4 changed files with 4 additions and 4 deletions

View File

@ -132,7 +132,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();
}
}

View File

@ -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();
}
}

View File

@ -153,7 +153,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();
}
}

View File

@ -111,7 +111,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();
}
}