in reply to Re^2: Long Process Waits Until End to Display Results
in thread Long Process Waits Until End to Display Results
The problem is not the browser timing out, but rather that the process waits until the end to display the results.
You may have a different problem, but merlyn's article is still a possible solution. Have your lengthy process fork off and write its output to a file, then have the CGI refresh every X seconds, reading that output file, and displaying the results. Perhaps you could even parse the output file and make the results a bit more user friendly (this is just speculation -- the output may already be user friendly).
You may also find that your lengthy process buffers its output writing to the file, though. In that case, you can investigate some of the solutions sgifford recommended.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Long Process Waits Until End to Display Results
by C_T (Scribe) on Dec 07, 2004 at 19:20 UTC | |
by revdiablo (Prior) on Dec 07, 2004 at 19:28 UTC | |
by tilly (Archbishop) on Dec 08, 2004 at 01:24 UTC | |
by C_T (Scribe) on Dec 09, 2004 at 19:12 UTC | |
by tilly (Archbishop) on Dec 09, 2004 at 22:08 UTC |