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
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
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:
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
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
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
> 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
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
?
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
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
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
> 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
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
---
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
; 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
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
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
: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.
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
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);
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
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
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
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
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
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
[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
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
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-
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,
>
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
31 matches
Mail list logo