Eoin Redmond has asked for the wisdom of the Perl Monks concerning the following question:

I would be grateful if anybody could help me with the following problem.

My file upload Perl script times out when uploading a large file using a slow dial-up connection.

I'm not 100% sure what exactly is timing out but I suspect it is the server. I'm in a Win32 environment using IIS.

When I submit the form, two cgi programs are launched - one does the file upload and the other one runs in another window informing the user that the upload is in progress. The window containing the file upload times out unless the upload is completed within about 2-3 minutes. This is on a 19.2Kbps dialup connection.

I would be grateful if anybody could offer some ideas on how to keep the file upload script alive until the upload has been completed.

Thanks

Eoin

  • Comment on Timeouts on long-running CGI/Perl Scripts

Replies are listed 'Best First'.
Re: Timeouts on long-running CGI/Perl Scripts
by jasonk (Parson) on Feb 14, 2003 at 19:19 UTC

    The timeout is probably the server deciding the cgi has run for too long and killing it off, in which case pretty much the only thing you can do is reconfigure the server not to do that.