I used threads only to simulate delay in servlet preocessing. Other
than that it all happens in one thread inside the request.How do I
specify the timeout server close on disconnected requests, can I get
some notification in the code to break the loop in request? Would the
timeout affect connectio
For timeout configuring, in case of Tomcat, you should look for Connector
configuration. There are connectionTimeout and keepAliveTimeout attributes.
In regards to notifications... I'm not sure there is a straightforward
solution. Maybe it worth lookinag at event listeners?
--
Regards,
Artashes Ho
If client terminates the connection the server will close it after the
timeout (should be specified in server configuration). Another thing is that
IMHO it is not a good idea to manage threads manually inside of any
component - you should leave it for container, it is container's job to
control thr