This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push: new f1253c0737 Remove unnecessary code f1253c0737 is described below commit f1253c073720388ea4622bf1f5c28edaa767a4e2 Author: Mark Thomas <ma...@apache.org> 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org