Author: fhanik
Date: Tue Apr 24 14:42:00 2007
New Revision: 532092

URL: http://svn.apache.org/viewvc?view=rev&rev=532092
Log:
reset timeout counter upon registration

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=532092&r1=532091&r2=532092
==============================================================================
--- 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 Tue 
Apr 24 14:42:00 2007
@@ -1252,6 +1252,7 @@
                     if (key != null) {
                         final KeyAttachment att = (KeyAttachment) 
key.attachment();
                         if ( att!=null ) {
+                            att.access();//to prevent timeout
                             //we are registering the key to start with, reset 
the fairness counter.
                             att.setFairness(0);
                             att.interestOps(interestOps);



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to