Author: fhanik Date: Mon Oct 30 08:47:10 2006 New Revision: 469189 URL: http://svn.apache.org/viewvc?view=rev&rev=469189 Log: 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.
Modified: tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java Modified: tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java?view=diff&rev=469189&r1=469188&r2=469189 ============================================================================== --- tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java (original) +++ tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java Mon Oct 30 08:47:10 2006 @@ -1129,6 +1129,7 @@ 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); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]