tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51872] request.getRemoteAddr() sometimes returning IP address from the previous request
Date Thu, 22 Sep 2011 21:55:46 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51872

--- Comment #7 from Mark Thomas <markt@apache.org> 2011-09-22 21:55:46 UTC ---
If the application is retaining a reference to the request object there is a
possible race condition that could lead to the behaviour you see here.

If during the call to AbstractHttp11Processor.recycle() - triggered at the end
of request processing - if there is a call to Request.getRemoteAddr() after
AbstractHttp11Processor.remoteAddr has been set to null but before
recycleInternal() is called then remoteAddr will end up being populated with
the IP address of the previous connection.

The way to test this is to set set the following system property:
org.apache.catalina.connector.RECYCLE_FACADES=true

Please let us know how you get on with testing using this setting.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


Mime
View raw message