tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r702676 - /tomcat/trunk/java/org/apache/coyote/http11/Http11Processor.java
Date Wed, 08 Oct 2008 01:03:02 GMT
Author: fhanik
Date: Tue Oct  7 18:03:02 2008
New Revision: 702676

URL: http://svn.apache.org/viewvc?rev=702676&view=rev
Log:
properly cleanup socket object, since we have the ability to chache Http11Processor objects
the processor must remove its reference to the socket, since sockets contain buffers (especially
SSL sockets) and it could be considered a semi mem leak

Modified:
    tomcat/trunk/java/org/apache/coyote/http11/Http11Processor.java

Modified: tomcat/trunk/java/org/apache/coyote/http11/Http11Processor.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/Http11Processor.java?rev=702676&r1=702675&r2=702676&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/Http11Processor.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/Http11Processor.java Tue Oct  7 18:03:02 2008
@@ -892,7 +892,7 @@
         // Recycle
         inputBuffer.recycle();
         outputBuffer.recycle();
-
+        this.socket = null;
         // Recycle ssl info
         sslSupport = null;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message