tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
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

--- Comment #7 from Mark Thomas <> 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:

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

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message