tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike W-M" <m...@ward-murphy.co.uk>
Subject Re: Simultaneous request from same IP
Date Mon, 16 Dec 2002 17:01:49 GMT
I should think it's likely, indeed desirable, that both requests are being
handled by the same servlet, but I don't see how we could consider
request-related headers to be "global servlet variables".
(And if there's any synchronising to do it surely belongs within the Tomcat
code, since I can't see any circumstance where this kind of behaviour would
be acceptable.  We're only reading, as well.)

I'm with CB - if this is indeed reproducible (I haven't checked, and I don't
think CB has mentioned the version of Tomcat?) - then it's a bug, surely?
[Also: is it just the headers that are identical or are the parameters
identical too?  (The getQueryString includes the parameter info, right?)]

Mike.

----- Original Message -----
From: "ContestAdmin" <ContestAdmin@itravelmarketing.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Monday, December 16, 2002 4:06 PM
Subject: Re: Simultaneous request from same IP


It is possible that the two requests are being handled by the same
servlet. The outputs can be confused if the servlet uses any
'global' servlet variables.

Try either synchronizing the methods or have your servlet
implement SingleThreadModel.

-CA

Chris Bick wrote:

<snip>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message