From c541fa374bc22aaae0aca1ffdbb7a05ccb2d2429 Mon Sep 17 00:00:00 2001 From: fhanik Date: Wed, 10 Dec 2008 21:29:10 +0000 Subject: [PATCH] Reset the key to let go off references git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@725443 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 e7cfa17ed..283abb13f 100644 --- a/java/org/apache/tomcat/util/net/NioEndpoint.java +++ b/java/org/apache/tomcat/util/net/NioEndpoint.java @@ -1401,6 +1401,7 @@ public class NioEndpoint { if (key.isValid()) key.cancel(); if (key.channel().isOpen()) try {key.channel().close();}catch (Exception ignore){} try {ka.channel.close(true);}catch (Exception ignore){} + ka.reset(); } catch (Throwable e) { if ( log.isDebugEnabled() ) log.error("",e); // Ignore -- 2.11.0