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
HttpServletR
Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 15, 2002 10:22 PM
To: Tomcat Users List
Subject: Re: Simultaneous request from same IP
On Sun, 15 Dec 2002, Chris Bick wrote:
> Date: Sun, 15 Dec 2002 22:05:45 -0500
> From: Chris Bick <[EMAIL PROTECTED]>
> Reply-
l
have to know it.)
Mike.
- Original Message -
From: "Chris Bick" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, December 16, 2002 3:13 PM
Subject: RE: Simultaneous request from same IP
Thanks for responding. I don't
ber 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
impleme
tackTrace();
}
}
}
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 12:21 PM
To: Tomcat Users List
Subject: Re: Simultaneous request from same IP
Can you post an example servlet (or the real code) that can reproduce
this? (No offense but
:40 PM
To: Tomcat Users List
Subject: Re: Simultaneous request from same IP
Is TrafficCop.java thread safe?
If not - that is your problem. Both requests are using the same
trafficCop instance.
-Tim
Chris Bick wrote:
> No offense taken. I still can't believe that this problem may exist.
same trafficCop instance is being used at the same time for 2
differnt requests.
The trafficCop object has a method called add() which (seems to) acts
on instance variables inside of the trafficCop object. This makes the
trafficCop object not thread safe.
-Tim
Chris Bick wrote:
> Why d
by several people on the list): Your application is
not
thread safe, and is broken.
Occam's Razor says that your program is broken, and you need to fix it.
George Sexton
MH Software, Inc.
Voice: 303 438 9585
http://www.mhsoftware.com
-Original Message-
From: Chris Bick [mailto:[E
Not sure I understand your last two statements.
Could you elaborate a bit more?
Thanks,
-cb
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 3:42 PM
To: [EMAIL PROTECTED]
Subject: RE: Simultaneous request from same IP
> TrafficCop is t
Thank you all for your help. I have found a solution that will work.
-cb
-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 9:44 AM
To: 'Tomcat Users List'
Subject: RE: Simultaneous request from same IP
well, its not the whole solution, but
10 matches
Mail list logo