Tomcat isn't timing out--your browser is.  It gives up if it doesn't get a
response from the server in a certain amount of time.  And I don't think you
can change that setting on any browser I've seen.

You could try calling ServletOutputStream.flush() each time you write data:
hopefully, that will tell the browser that you're working on it.  But,
depending on your server configuration, the data might still get bufferred,
and flush() might not actually flush any data.

The only useful answer is, Don't make a servlet that takes that long.
Profile your code, calculate things ahead of time, cache results, split up
the page, do work in multiple threads, all the standard speed-up things.

                                        -- Bill K. 

> -----Original Message-----
> From: Andrew Birchall [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 18, 2001 5:25 AM
> To: [EMAIL PROTECTED]
> Subject: Setting Tomcat HTTP Request Timeout
> 
> 
> Hi,
> We are using a standalone Tomcat 3.2.1 for our servlet app. 
> and we keep
> getting
> Error 500 read timeout errors from Tomcat on requests which 
> take a long
> time.
> 
> Is there any way of setting the Request timeout in Tomcat so 
> we can set it
> to a
> larger value?
> 
> Thanks
> Andy Birchall
> Software Developer
> Rchive-it.com
> 

Reply via email to