From: fhanik Date: Fri, 21 Jul 2006 16:27:42 +0000 (+0000) Subject: Dereference socket after its been used X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5e0afb5c6c8a426bf867099242473ead025a000b;p=tomcat7.0 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 --- 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); - } - }