You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bi...@apache.org on 2001/11/02 04:14:03 UTC
cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/server Http10Interceptor.java
billbarker 01/11/01 19:14:03
Modified: src/share/org/apache/tomcat/modules/server
Http10Interceptor.java
Log:
Fix recycling the remoteAddr and remoteHost.
The remoteAddr and remoteHost would get reset to the default localhost values after recycling.
Fix for bug 4564
Reported by: Alessandro Polverini polverini@explo-it.com
Revision Changes Path
1.27 +3 -0 jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Http10Interceptor.java
Index: Http10Interceptor.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Http10Interceptor.java,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- Http10Interceptor.java 2001/10/03 22:13:45 1.26
+++ Http10Interceptor.java 2001/11/02 03:14:03 1.27
@@ -224,6 +224,9 @@
public void recycle() {
super.recycle();
if( http!=null) http.recycle();
+ // recycle these to remove the defaults
+ remoteAddrMB.recycle();
+ remoteHostMB.recycle();
}
public void setSocket(Socket socket) throws IOException {
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>