tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neil Aggarwal" <n...@JAMMConsulting.com>
Subject RE: Tomcat threading questions
Date Mon, 22 Dec 2003 16:30:11 GMT
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 a way to set a 
timeout on a thread and kill it if it takes that amount of time?

> The thread allocation is pretty similar to Apache/httpd.

The Apache server source code has a hard thread limit defined
in the source code.  Does Tomcat?

Thanks,
	Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! => http://newsletter.JAMMConsulting.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message