You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chris Bick <cb...@wurldmedia.com> on 2002/12/16 04:05:45 UTC
Simultaneous request from same IP
Hello,
Has anyone seen two requests from the same IP hitting a
servlet at approximately the time result in the same query string and
headers?
I can reproduce this every time. Make two requests from one machine
that hits my servlet at approximately the same time. Both
HttpServletRequest objects contain query string and header information
of the first request in. If the IPs are different everything works
properly.
Thanks,
-cb
Re: Simultaneous request from same IP
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Sun, 15 Dec 2002, Chris Bick wrote:
> Date: Sun, 15 Dec 2002 22:05:45 -0500
> From: Chris Bick <cb...@wurldmedia.com>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: tomcat-user@jakarta.apache.org
> Subject: Simultaneous request from same IP
>
> Hello,
> Has anyone seen two requests from the same IP hitting a
> servlet at approximately the time result in the same query string and
> headers?
>
> I can reproduce this every time. Make two requests from one machine
> that hits my servlet at approximately the same time. Both
> HttpServletRequest objects contain query string and header information
> of the first request in. If the IPs are different everything works
> properly.
>
This seems *much* more likely to be a thread-safety problem in your user
code than a bug in Tomcat. For example, using instance variables in your
servlet to store per-request state information is pretty much guaranteed
to have difficulties.
The only way to know for sure would be for you to post a bug report
(http://nagoya.apache.org/bugzilla/) with a reproducible test case, so
that Tomcat developers can see what you are seeing.
> Thanks,
> -cb
>
Craig
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>