reset timeout counter upon registration
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 24 Apr 2007 21:42:00 +0000 (21:42 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 24 Apr 2007 21:42:00 +0000 (21:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@532092 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/net/NioEndpoint.java

index 78b94e5..f2d1ff2 100644 (file)
@@ -1252,6 +1252,7 @@ public class NioEndpoint {
                     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);