Bill:
Eventually the browser will drop the connection, and then if
the Servlet
tries to write anything, then an IOException will be thrown. However
allowing the following code on your server will DoS:
while(true) {
Thread.Sleep(1000);
}
This is precisely my question: Is there
Howdy,
This is precisely my question: Is there a way to set a
timeout on a thread and kill it if it takes that amount of time?
Sure there is, in general java programming. But there's no portable way
for a webapp to do that with internal tomcat threads.
Yoav Shapira
This e-mail, including
Neil Aggarwal [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello:
I have a couple of questions about the way Tomcat uses threads:
1. If a thread does an infinite loop or other operation that
would cause it to wait forever, will Tomcat kill it?
If not, is there a way to do