C_T has asked for the wisdom of the Perl Monks concerning the following question:
I know from experience that I can prevent this if I throw some stuff to the browser periodically, even if it's just a "." character. However I don't know if it's possible to do this while open3 is waiting around. Unfortunately, I can't just background the process and move on because what follows depends on the lengthly process being done.
It would be an easy problem to solve in a multi-threaded language (like Java). I would just create a thread to print "." to the browser every 15 seconds or so.
However, I'm not sure how to do that in Perl, or if it's even possible.
Does anyone have any thoughts to save my script? I'm open to any suggestions, not just a multi-threaded approach.
Thanks!
CT
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Long CGI process is cut short by browser
by perrin (Chancellor) on Dec 02, 2004 at 23:04 UTC | |
by C_T (Scribe) on Dec 02, 2004 at 23:11 UTC | |
by C_T (Scribe) on Dec 07, 2004 at 00:37 UTC | |
|
Re: Long CGI process is cut short by browser
by BUU (Prior) on Dec 03, 2004 at 03:57 UTC | |
|
Re: Long CGI process is cut short by browser
by dragonchild (Archbishop) on Dec 03, 2004 at 14:23 UTC | |
by Nitrox (Chaplain) on Dec 03, 2004 at 16:28 UTC | |
by dragonchild (Archbishop) on Dec 03, 2004 at 16:37 UTC | |
by Nitrox (Chaplain) on Dec 03, 2004 at 16:44 UTC |