This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 818a7a03788477284ca7376026e400ab54961ea4
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 fb0d213377..24366d258b 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) {
@@ -279,8 +278,6 @@ public class NioReplicationTask extends AbstractRxTask {
             public void run() {
                 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

Reply via email to