RE: Simultaneous request from same IP

2002-12-17 Thread Chris Bick
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 whol

RE: Simultaneous request from same IP

2002-12-17 Thread Cox, Charlie
is process? filters must also be written to be thread safe. I don't recall seeing a web.xml. Charlie > -Original Message- > From: Mike W-M [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 17, 2002 9:28 AM > To: Tomcat Users List > Subject: Re: Simultaneous request f

Re: Simultaneous request from same IP

2002-12-17 Thread Mike W-M
ed as identical requests or whether they're different requests that have been confused Mike :-) - Original Message - From: "Cox, Charlie" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Tuesday, December 17, 2002 2:

RE: Simultaneous request from same IP

2002-12-17 Thread Cox, Charlie
t Users List > Subject: Re: Simultaneous request from same IP > > > Chris, > > I've played around with a servlet almost identical to your > original (not > full!) test-case (below). (Did you actually get the problem > to appear on > this one or is it just a th

Re: Simultaneous request from same IP

2002-12-16 Thread Carl Trusiak
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 > > > Than

Re: Simultaneous request from same IP

2002-12-16 Thread Mike W-M
the problem with nifty-I.E. fingerwork? 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 respo

RE: Simultaneous request from same IP

2002-12-16 Thread Schnitzer, Jeff
> From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]] > > That said, there's nothing inherently wrong with what he's doing and I > think it took quick to blame what he's seeing on this arrangement. To > make > a conclusive argument, I think we'd have to see the TrafficCop object's > code. To make

RE: Simultaneous request from same IP

2002-12-16 Thread Justin Ruthenbeck
At 01:42 PM 12/16/2002, you wrote: The fact that the add() method is syncronized has no impact on this - only one request is updating at a time. However, later when you ask for the value that was updated, you only get the second value because there is only one trafficCop object to get updated beca

Re: Simultaneous request from same IP

2002-12-16 Thread Ken Anderson
? 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 thread safe because add() is synchronized. Regardless if trafficcop is No, this

RE: Simultaneous request from same IP

2002-12-16 Thread Larry Meadors
Two requests are coming into your servlet. A SINGLE servlet object handles BOTH requests. That single object has a SINGLE child object (trafficCop) that gets updated once for each request. That child object is shared by both requests - it is not unique for each request unles you make it a method va

RE: Simultaneous request from same IP

2002-12-16 Thread Chris Bick
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

RE: Simultaneous request from same IP

2002-12-16 Thread Larry Meadors
> TrafficCop is thread safe because add() is > synchronized. Regardless if trafficcop is No, this is false. The add() method is syncronized, and therefore thread safe. But that is not where the problem lies. TrafficCop may be thread safe, but access to it is not. Two objects are updating a

RE: Simultaneous request from same IP

2002-12-16 Thread Chris Bick
Thanks George, problem solved. Couldn't have done it with out you. -cb -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 2:44 PM To: Tomcat Users List Subject: RE: Simultaneous request from same IP Let us apply Occam's Razor

RE: Simultaneous request from same IP

2002-12-16 Thread Sexton, George
--- From: Chris Bick [mailto:[EMAIL PROTECTED]] Sent: 16 December, 2002 11:26 AM To: Tomcat Users List Subject: RE: Simultaneous request from same IP TrafficCop is thread safe because add() is synchronized. Regardless if trafficcop is thread safe or not the values that I get from HttpServletReque

Re: Simultaneous request from same IP

2002-12-16 Thread Mike W-M
; fashion and sending duplicate requests? Mike. - Original Message - From: "Chris Bick" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, December 16, 2002 6:25 PM Subject: RE: Simultaneous request from same IP TrafficCop is

RE: Simultaneous request from same IP

2002-12-16 Thread Chris Bick
that TrafficCop should have nothing to do with the behavior that I am seeing inside the servlet. Right? -cb -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 1:05 PM To: Tomcat Users List Subject: Re: Simultaneous request from same IP But the

Re: Simultaneous request from same IP

2002-12-16 Thread Tim Funk
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. If yo

RE: Simultaneous request from same IP

2002-12-16 Thread Chris Bick
: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.

RE: Simultaneous request from same IP

2002-12-16 Thread Bodycombe, Andrew
Get method. This should solve your problem. Andy -Original Message- From: Chris Bick [mailto:[EMAIL PROTECTED]] Sent: 16 December 2002 17:36 To: Tomcat Users List Subject: RE: Simultaneous request from same IP No offense taken. I still can't believe that this problem may exist. If

Re: Simultaneous request from same IP

2002-12-16 Thread Tim Funk
s"; out.println(error); return; } String xml = trafficCop.connectionUpdate(urn, sessionId,new URL(null,"pcp://"+listenIP,new Handler()), new Boolean(behindFirewall).booleanValue(),0,0); System.out.println(xml);

RE: Simultaneous request from same IP

2002-12-16 Thread Chris Bick
uot;+listenIP,new Handler()), new Boolean(behindFirewall).booleanValue(),0,0); System.out.println(xml); out.println(xml); } } catch (Exception e) { out.println(""+e.getMessage()+""); e.printS

RE: Simultaneous request from same IP

2002-12-16 Thread Cox, Charlie
t: Monday, December 16, 2002 12:15 PM > To: Tomcat Users List > Subject: RE: Simultaneous request from same IP > > > > I've reproduced this problem with tomcat 3.2 and every > version of 4.1 up > to 4.1.12 > > I haven't gone any further than all headers b

Re: Simultaneous request from same IP

2002-12-16 Thread Tim Funk
Can you post an example servlet (or the real code) that can reproduce this? (No offense but ...) I really think there ios something with your code. -Tim Chris Bick wrote: I've reproduced this problem with tomcat 3.2 and every version of 4.1 up to 4.1.12 I haven't gone any further than all head

RE: Simultaneous request from same IP

2002-12-16 Thread Chris Bick
object are different. Let me know if anyone can reproduce this?(If you have the time...) -cb -Original Message- From: Mike W-M [mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 12:02 PM To: Tomcat Users List Subject: Re: Simultaneous request from same IP I should think it's

Re: Simultaneous request from same IP

2002-12-16 Thread Mike W-M
urely? [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" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTEC

Re: Simultaneous request from same IP

2002-12-16 Thread ContestAdmin
the clients one after another.(real fast) > > -cb > > -Original Message- > From: Mike W-M [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 16, 2002 10:28 AM > To: Tomcat Users List > Subject: Re: Simultaneous request from same IP > > I might be missing the po

RE: Simultaneous request from same IP

2002-12-16 Thread Chris Bick
[mailto:[EMAIL PROTECTED]] Sent: Monday, December 16, 2002 10:28 AM To: Tomcat Users List Subject: Re: Simultaneous request from same IP I might be missing the point! What exactly is the problem? I didn't think there was any rule that said you couldn't have two "identical" req

Re: Simultaneous request from same IP

2002-12-16 Thread Mike W-M
t 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 think it is an instance variable problem. Here is the code to reproduce the problem: public class AServlet extends HttpServlet { pub

RE: Simultaneous request from same IP

2002-12-16 Thread Chris Bick
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-

Re: Simultaneous request from same IP

2002-12-15 Thread Craig R. McClanahan
On Sun, 15 Dec 2002, Chris Bick wrote: > Date: Sun, 15 Dec 2002 22:05:45 -0500 > From: Chris Bick <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Simultaneous request from same IP > > Hello, >

Simultaneous request from same IP

2002-12-15 Thread Chris Bick
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