This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 10.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 9aae3a2798a38b3d5c6e621f4106bee9d219e05a Author: Mark Thomas <[email protected]> AuthorDate: Thu May 19 14:03:40 2022 +0100 Remove unnecessary code --- java/org/apache/catalina/tribes/transport/nio/NioReplicationTask.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/java/org/apache/catalina/tribes/transport/nio/NioReplicationTask.java b/java/org/apache/catalina/tribes/transport/nio/NioReplicationTask.java index 0e81e2e107..b9f7148ba0 100644 --- a/java/org/apache/catalina/tribes/transport/nio/NioReplicationTask.java +++ b/java/org/apache/catalina/tribes/transport/nio/NioReplicationTask.java @@ -165,7 +165,6 @@ public class NioReplicationTask extends AbstractRxTask { reader.access(); ReadableByteChannel channel = (ReadableByteChannel) key.channel(); int count=-1; - buffer.clear(); // make buffer empty SocketAddress saddr = null; if (channel instanceof SocketChannel) { @@ -276,8 +275,6 @@ public class NioReplicationTask extends AbstractRxTask { Runnable r = () -> { try { if (key.isValid()) { - // cycle the selector so this key is active again - key.selector().wakeup(); // resume interest in OP_READ, OP_WRITE int resumeOps = key.interestOps() | SelectionKey.OP_READ; key.interestOps(resumeOps); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
