Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java17
-rw-r--r--jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectorManager.java10
2 files changed, 0 insertions, 27 deletions
diff --git a/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java b/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java
index 7aed2cff22..19195fa7f0 100644
--- a/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java
+++ b/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java
@@ -622,21 +622,4 @@ public class SelectChannelEndPoint extends ChannelEndPoint implements AsyncEndPo
_maxIdleTime=timeMs;
}
- /* ------------------------------------------------------------ */
- /**
- * This looks for undispatched endpoints that have key.interestOps!=endp.interestOps
- * @TODO find out the root cause of this and delete this method.
- */
- public void checkKey(SelectionKey key)
- {
- synchronized (this)
- {
- if (!_changing && key.interestOps()!=_interestOps && isReadyForDispatch())
- {
- Log.warn("NIO InterestOps mismatch "+key.interestOps()+"!="+_interestOps+" for "+this);
- updateKey();
- }
- }
- }
-
}
diff --git a/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectorManager.java b/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectorManager.java
index 24898d7a3b..1ba36a69d8 100644
--- a/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectorManager.java
+++ b/jetty-io/src/main/java/org/eclipse/jetty/io/nio/SelectorManager.java
@@ -604,16 +604,6 @@ public abstract class SelectorManager extends AbstractLifeCycle implements Dumpa
}
}
});
-
- // TODO find root cause and remove this
- // This looks for undispatched endpoints that have key.interestOps!=endp.interestOps
- for (SelectionKey key: selector.keys())
- {
- if (key.isValid() && key.attachment() instanceof SelectChannelEndPoint)
- {
- ((SelectChannelEndPoint)key.attachment()).checkKey(key);
- }
- }
}
}
catch (CancelledKeyException e)

Back to the top