From 6c3c025436988cd4e9db2db676ffa7af61f6c3f5 Mon Sep 17 00:00:00 2001 From: fhanik Date: Tue, 24 Apr 2007 21:42:00 +0000 Subject: [PATCH] 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 --- java/org/apache/tomcat/util/net/NioEndpoint.java | 1 + 1 file changed, 1 insertion(+) 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); -- 2.11.0