From: fhanik Date: Tue, 24 Apr 2007 21:42:00 +0000 (+0000) Subject: reset timeout counter upon registration X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6c3c025436988cd4e9db2db676ffa7af61f6c3f5;p=tomcat7.0 reset timeout counter upon registration git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@532092 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 78b94e5ff..f2d1ff21e 100644 --- a/java/org/apache/tomcat/util/net/NioEndpoint.java +++ b/java/org/apache/tomcat/util/net/NioEndpoint.java @@ -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);