From: fhanik Date: Mon, 30 Oct 2006 16:47:10 +0000 (+0000) Subject: Fixed bug where OP interest is different for the first time the key is used, hence... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e86a35f1fc8ddb7b76fd13c29efd167cef40cf47;p=tomcat7.0 Fixed bug where OP interest is different for the first time the key is used, hence a key that never has been read would never timeout. git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@469189 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/tomcat/util/net/NioEndpoint.java b/java/org/apache/tomcat/util/net/NioEndpoint.java index e55038857..10c2deb94 100644 --- a/java/org/apache/tomcat/util/net/NioEndpoint.java +++ b/java/org/apache/tomcat/util/net/NioEndpoint.java @@ -1129,6 +1129,7 @@ public class NioEndpoint { final KeyAttachment ka = key!=null?key:new KeyAttachment(); ka.reset(this,socket); PollerEvent r = eventCache.poll(); + ka.interestOps(SelectionKey.OP_READ);//this is what OP_REGISTER turns into. if ( r==null) r = new PollerEvent(socket,ka,OP_REGISTER); else r.reset(socket,ka,OP_REGISTER); addEvent(r);