Hi all,

I have a scenario in which multiple time-critical clients call a Tomcat 
servlet. The read timeout on a client->server connection is set to 100ms, so if 
the servlet has not responded within that time, the connection is closed and 
the client continues with other work.

I want to count the number of times clients close their connections to the 
Tomcat servlet due to the 100ms read timeout, and I want to do this from within 
Tomcat itself. If this possible? If so, how would I do it?

If I were using a simple (Java) HTTP server, I could presumably just catch the 
IOException caused by the client's closing the underlying socket/connection, 
and increment a counter. However, with servlets in Tomcat, the underlying 
connection is abstracted over through the use of HttpServletRequest and 
HttpServletResponse objects...

Any suggestions would be greatly appreciated!

I apologise if there is an obvious solution to this that I've overlooked, but 
I'm very new to Tomcat, and have been happily living within the abstraction of 
jsps and servlets so far :-)

Thanks

Greg



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to