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 [EMAIL PROTECTED]
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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>