RE: Tomcat threading questions

2003-12-22 Thread Neil Aggarwal
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

RE: Tomcat threading questions

2003-12-22 Thread Shapira, Yoav
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

Re: Tomcat threading questions

2003-12-21 Thread Bill Barker
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