Karthik Nanjangude wrote:
Hi
(*) do you have any particular reason to use this setting, instead of the
default ? Or is
it just something you copied from some blog page ?
1) I have not copied the same from any Blog , it is as defined
configuration as is from the N/w team
2) Where can I fine the default settings for the same ?
In the on-line documentation, at
http://tomcat.apache.org/connectors-doc/reference/workers.html
3) As I have already said We have put a Java script filter to disable
multiple Clicks for dual request from the Browser ( IE 7+ / FF 3+ )
Well, maybe it is not working. Have you really traced the browser -> server side to see
if the duplicate POST request originates there ?
Plus, in your original message, you do not define very clearly what these 2 POST requests
are. Are they really the same, from the same client, with the same content ? how close to
one another do they arrive ?
If it was mod_jk resending the same request after the socket_timeout of 10 s, then the 2
POST requests should be separated by at least 10 s. Are they ?
As someone once said : Extraordinary claims require extraordinary proof.
In other words : you seem to claim that Apache or mod_jk or Tomcat duplicates a POST
request. This is not the behaviour experienced by the vast majority of Apache + mod_jk +
Tomcat installations. So you need data a bit more solid than what you have supplied so
far, before someone will believe that there is another reason than the user clicking twice.
With regards
karthik
-----Original Message-----
From: André Warnier [mailto:a...@ice-sa.com]
Sent: Tuesday, August 10, 2010 4:10 PM
To: Tomcat Users List
Subject: Re: 2 POST requests to underlying Server
Karthik Nanjangude wrote:
Hi
Spec
Java 1.5
O/s : Linux
APP Server : JBOSS4.2.1 (Tomcat built with)
HTTP Server : apache_2.2.11 [ With out SSL ]
Mod library : mod_jk-1.2.28-httpd-2.2.X.so
LB 1 Apache : 1 JBOSS:Port of application
Question : Some times We have observed that on WEB Application ( click on
button in jsp )
Apache is sending 2 POST requests to underlying JBOSS ( Tomcat
server ).
Note: We even put a Java script filter to disable multiple Clicks for the page,
How we Observed : Via TCP Thread dump using command "tcpdump -i bond0 -s 1500 -w
/ tmp / test.pcap "
Can this configuration "worker.node1.socket_timeout=10" got any thing to do
with this multiple request activity?
Unlikely, but :
1) simple test : remove this setting, and see if the issue still appears (*)
(By removing the setting, you make the timeout infinite)
2) use the mod_jk logging level TRACE, to see exactly what mod_jk is sending to
Tomcat
3) It is unlikely that any Apache or mod_jk or Tomcat component would repeat a
POST
request, because that kind of violates the HTTP RFC. So chances are, that the
double POST
request is /still/ coming from the browser.
(*) do you have any particular reason to use this setting, instead of the
default ? Or is
it just something you copied from some blog page ?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org