From 5e0afb5c6c8a426bf867099242473ead025a000b Mon Sep 17 00:00:00 2001 From: fhanik Date: Fri, 21 Jul 2006 16:27:42 +0000 Subject: [PATCH] Dereference socket after its been used git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@424374 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/tomcat/util/net/NioEndpoint.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/java/org/apache/tomcat/util/net/NioEndpoint.java b/java/org/apache/tomcat/util/net/NioEndpoint.java index f5ee33349..b244b7f71 100644 --- a/java/org/apache/tomcat/util/net/NioEndpoint.java +++ b/java/org/apache/tomcat/util/net/NioEndpoint.java @@ -1333,7 +1333,6 @@ public class NioEndpoint { // Process requests until we receive a shutdown signal while (running) { - // Wait for the next socket to be assigned SocketChannel socket = await(); if (socket == null) @@ -1357,12 +1356,11 @@ public class NioEndpoint { log.error("",x); } } - + //dereference socket to let GC do its job + socket = null; // Finish up this request recycleWorkerThread(this); - } - } -- 2.11.0