tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jess Holle <>
Subject Re: javax.servlet.ServletRequest and thread safety...
Date Tue, 22 Nov 2011 00:31:25 GMT
On 11/21/2011 5:26 PM, Caldarale, Charles R wrote:
>> From: Jess Holle []
>> Subject: javax.servlet.ServletRequest and thread safety...
>> Is there an issue with multi-threaded access here or am
>> I imagining things?
> There is an issue, and it's highly unlikely to ever be changed.  The spec defines the
APIs as not thread-safe, so there is zero impetus to make them so and thereby impact performance.
Okay.  So the workaround appears to be to call getParameterMap() [for 
starters] prior to any potential access by another thread.

Clearly there should be *some* way to add a means to peak on requests in 
progress in detail (including their parameters) -- irrespective of what 
the spec says.

 From a quality of implementation standpoint this shouldn't have to copy 
all the request data -- but forcing it to be obtained once prior to 
access by other threads is quite reasonable.

Jess Holle

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

View raw message