Re: IE6 Servlet Timeout
From: Raymond DeCampo (rdecampo_at_hold-the-spam.twcny.rr.com)
Date: 10/28/03
- Previous message: Raymond DeCampo: "Re: Odd character when retrieving a string from a HashMap"
- In reply to: Justin Starbuck: "IE6 Servlet Timeout"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 28 Oct 2003 01:53:06 GMT
Justin Starbuck wrote:
> I have a servlet based application which occasionally performs some
> lengthy processing (up to 5 mins) before returning a response. This is
> fine when accessed using Netscape 4.8, but when using IE6, a timeout
> occurs after approx 2 minutes, claiming that the requested page cannot
> be found.
> The application is running on Borland AppServer, incorporating
> Tomcat3.2.
>
> I have not been able to find a good reason for this behaviour.
> Is there a way of setting a timeout within the servlet?
> Anybody got any ideas?
Justin,
I believe that the timeout value is configurable on the client end, but
not the server end. Unless you can guarantee the client configuration,
I recommend using an asynchronous mechanism to handle this. E.g., send
a response right away while spawning a thread to handle the computation.
The response would have an automatic refresh. The refresh would check
if the computation is done, if it is, display the results, otherwise
send back the refresh. If you want to get really fancy you could
include some time estimates on the refresh page so the user would know
how long to wait.
Ray
- Previous message: Raymond DeCampo: "Re: Odd character when retrieving a string from a HashMap"
- In reply to: Justin Starbuck: "IE6 Servlet Timeout"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]