Skip to content

Commit

Permalink
Cannot check anymore the type of the executor (#2290)
Browse files Browse the repository at this point in the history
Related to #1873
  • Loading branch information
violetagg authored Jun 14, 2022
1 parent 87fb283 commit 7cfe7e2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
import io.netty5.channel.ChannelHandlerAdapter;
import io.netty5.channel.ChannelHandlerContext;
import io.netty5.channel.ChannelPipeline;
import io.netty5.channel.nio.NioEventLoop;
import io.netty5.handler.ssl.SslHandler;
import io.netty5.handler.stream.ChunkedWriteHandler;
import io.netty5.handler.timeout.IdleState;
Expand Down Expand Up @@ -413,9 +412,10 @@ static boolean mustChunkFileTransfer(Connection c, Path file) {
}
ChannelPipeline p = c.channel().pipeline();
return p.get(SslHandler.class) != null ||
p.get(NettyPipeline.CompressionHandler) != null ||
(!(c.channel().executor() instanceof NioEventLoop) &&
!"file".equals(file.toUri().getScheme()));
p.get(NettyPipeline.CompressionHandler) != null; // ||
// TODO
//(!(c.channel().executor() instanceof NioEventLoop) &&
// !"file".equals(file.toUri().getScheme()));
}

static void registerForClose(boolean shouldCleanupOnClose,
Expand Down

0 comments on commit 7cfe7e2

Please sign in to comment.