Executive Summary:
Need a simple technique to avoid client (and server) timeouts in a web app
Waffle:
I have a script that produces a report and, due to circumstances outside my control, can take up to several minutes to do it.
I incorporated this script in a simple web app, which requests the parameters in a FORM and then POSTs them to the server which runs the script and outputs a success or failure status - bog standard stuff.
However, the extreme slowness of this script means that users can end up getting "client timeouts", and I am seeking a simple way to avoid this.
In Firefox, one can type "about:config" in the address line, and increase the timeout by setting the following parameters:
But I don't want to rely on the users having to make any manual tweaks like this, wondered if there is a simple Ajax solution. Before embarking on this though I wondered if Ajax wouldn't end up with exactly the same problem if an Ajax request exceeded this blasted client timeout value.
I realise the whole design isn't ideal - The user shouldn't have to wait several minutes, and the report script should be speeded up. So please don't bother wasting your breath by pointing this out. As I said, the script and the requirement is beyond my control.
But if anyone has any other ideas, along Ajax or Comet lines, but preferably without any plugins (such as Flash), I'd be very interested.
I mean it must be possible to evade these timeouts, or else how do tickertape and real-time update web apps work?
Need a simple technique to avoid client (and server) timeouts in a web app
Waffle:
I have a script that produces a report and, due to circumstances outside my control, can take up to several minutes to do it.
I incorporated this script in a simple web app, which requests the parameters in a FORM and then POSTs them to the server which runs the script and outputs a success or failure status - bog standard stuff.
However, the extreme slowness of this script means that users can end up getting "client timeouts", and I am seeking a simple way to avoid this.
In Firefox, one can type "about:config" in the address line, and increase the timeout by setting the following parameters:
Code:
network.http.keep-alive true network.http.keep-alive.timeout 300 <-- increase this
I realise the whole design isn't ideal - The user shouldn't have to wait several minutes, and the report script should be speeded up. So please don't bother wasting your breath by pointing this out. As I said, the script and the requirement is beyond my control.
But if anyone has any other ideas, along Ajax or Comet lines, but preferably without any plugins (such as Flash), I'd be very interested.
I mean it must be possible to evade these timeouts, or else how do tickertape and real-time update web apps work?
Comment