You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2022/05/19 13:05:21 UTC
[tomcat] 03/03: Remove unnecessary code
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 <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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org