tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/server Http10Interceptor.java
Date Fri, 02 Nov 2001 03:14:03 GMT
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:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message