You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Victor Chinnappan <cv...@yahoo.com> on 2000/08/25 00:43:21 UTC
Anyone tried pulling the wire...????
Hi All,
I am a newbie to TOMCAT.... Really glad that i started
using it...
Wondering if anyone tried to test the timeout feature
of TOMCAT.
Considering the error cases for a web app, we tried to
test the network errors. So wrote a servlet that can
receive files from a client. With this set up we tried
to upload a huge file... (1 MB) and half way through,
pulled the wire in the client system...
NOTE: This was only tried on the LAN/intranet.
The client got an error notification immediately.. On
the server the servlet was still hanging on to the
read operation and never complained of any
errors/exceptions... Does the servlet spec say
anything about this or should it be handled at a
different level...
I read from docs and going through the server.xml in
the conf\ directory understood that you can set the
timeout for your contexts. By default it would be "30"
minutes i guess which is specified in web.xml .
We changed them to 2 minutes.
I created an entry for <session-timeout> in the
webapps\MyApp\web-inf\web.xml in the application
directory for 2 minutes. It did not do any better
still.
I am not sure if i have misunderstood the concept and
the timeout is just for inacivtiy on a client's part
or would it be applicable for this kind of network
errors too???
I would really appreciate anyone/everyone 's feedback
or pointers...
TIA,
Victor.C
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/