amonroy has asked for the wisdom of the Perl Monks concerning the following question:
I have a CGI that does some heavy stuff that might take a looong time, so I am afraid the browser will time out. I am planning to run the heavy stuff in a child process forked by the parent CGI. The parent will just print an HTML page that will refresh every n seconds and it will check if the child has finished.
Question: is this the best to approach this type of situations? In the future I might want to port all my CGIs to ModPerl 2.0.
I am using Apache 2.0 and Perl 5.8.0
Thank you for your time.
-Andrés
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is forking the best solution for a CGI running a heavy/slow process?
by perrin (Chancellor) on Apr 15, 2004 at 23:20 UTC | |
|
Re: Is forking the best solution for a CGI running a heavy/slow process?
by saintmike (Vicar) on Apr 15, 2004 at 23:24 UTC | |
|
Re: Is forking the best solution for a CGI running a heavy/slow process?
by etcshadow (Priest) on Apr 16, 2004 at 00:02 UTC | |
|
Re: Is forking the best solution for a CGI running a heavy/slow process?
by tilly (Archbishop) on Apr 16, 2004 at 00:05 UTC | |
|
Re: Is forking the best solution for a CGI running a heavy/slow process?
by Fletch (Bishop) on Apr 16, 2004 at 02:11 UTC | |
|
Re: Is forking the best solution for a CGI running a heavy/slow process?
by jayrom (Pilgrim) on Apr 16, 2004 at 14:16 UTC |