Rohit Macherla wrote:So, does this mean that if my webservice goes into an infinite loop, or takes about 10hours to process, and , say the client that is invoking my webservice sets a timeout of 11hours, then everything would go fine ?
It is unrealistic that a client would stick around that long (because of client-side
timeouts) and the server side resources would still be tied up.
Tomcat doesn't seem to have a request,
servlet or "whatever you want to call it" timeout that limits the execution time for servlets.
So the possibility of an indefinitely hung servlet seems to be very real. This is illustrated by a comment made in the mod_jk Apache Tomcat connector documentation.
The Apache Tomcat Connector - Timeouts HowTo
Reply Timeout
If JK aborts waiting for a response, because a reply timeout fired, there is no way to stop processing on the backend. Although you free processing resources in your web server, the request will continue to run on the backend - without any way to send back a result once the reply timeout fired.
(Jetty at least gives you a
maxIdleTime configuration parameter).