> From: Jeremy [mailto:asfbugzi...@nuru.net] 
> Subject: Single POST request being handled twice

> How is it possible that Tomcat has 2 threads handling 
> the same request?

This is usually the result of an application coding or design error: storing a 
reference to a request in an inappropriate scope such as the session or a 
servlet instance or static field.

> How can we detect this as opposed to the user legitimately 
> sending the same request twice?

A) Fix your webapp.

B) Place a hidden token (e.g., a sequence number)on the web page that is 
transmitted with the request, and updated with a different one on each 
response.  If the same token is seen twice, it's a retransmission.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to