Hi Friends,

I am facing a problem when I use Tomcat 4.0 as the servlet container.
I receive an http request (which has an invalid content length - ie- the content 
length specified is more than the actual data). When I read the request through a 
reader, it blocks indefinitely waiting for more data to arrive while there is actually 
none.

Tomcat does not even kill this thread and it just blocks. The problem here is that I 
use a singleton object to read the request. So this singleton gets blocked while 
reading and all other requests are also blocked.

I don't want to change the implementation of the singleton to per thread based object 
since it involves memory issues.
Is there any way by which we can ensure that requests with invalid content lengths are 
not blocked while reading ? Does any non blockigncall exist for reading the request ?

Thanks
Amit

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to