If a client HTTP request takes some time to process on the servlet side, it is possible that the Tomcat can lose connection to the client in the middle of this processing time, due to various reasons, for example the client quit. How can servlet detect such event so it can terminate the server side processing which is not needed any more?
thanks, Ming