It's true that the statement that "the Channel Stopped Responding error means that the channel exited before script execution was completed" is incorrect. The correct answer is that the error means that the channel exited (was stopped, killed, crashed, etc.) before it finished sending all output data back to the browser.
First some background information on the data flow between the various FoxWeb components:
What this means, is that a channel could be executing a script, while still sending data that was served by a previous request (or possibly multiple previous requests). The maximum number of concurrent requests, for which a channel can be sending data at any time is five. If this limit is reached, then the channel does not free itself up until data for at least one of the previous requests is transferred in its entirety.
The reason for allowing channels to execute scripts before they are done sending data for previous requests is that it makes it less likely for a user with a slow connection to lock a channel while the output data crawls back to his/her browser. Channels are freed up as soon as they are done executing the requested script -- not when they are finally done sending data to the browser.
This works great, but it can cause problems such as what you are experiencing. In particular, a script error, or script timeout can reset a channel that is still sending data for a previous request, causing the "FoxWeb Channel Stopped Responding" error to appear for all users that are still receiving data from the same channel. There are a couple of measures you can take to prevent this problem:
We will also look into a couple of changes in version 3:
Sent by Alexey Kouznetsov on 12/08/2003 05:14:12 AM:
We reported this problem half year ago... We still have this problem after 2.6 upgrade, this return the error AFTER last line in our program exectred, in random place at the web page. This happened at random place of page, and more often on loaded server with lot of requests with big pages (200 KB or more), but may appear on any other size page.
Also we reported: If we try to download a file using an example code (Examples/Download.fwx) for download to low speed clients it will never finish. If we check the downloaded file, we will see FoxWeb stopped respond message at end of the file. and this is long after last string of the code executed. it looks like next request came to same channel and overwrite something.
Sent by FoxWeb Support on 10/31/2003 12:04:36 PM:
The "FoxWeb Channel Stopped Responding" message means that a channel process was exited before it was finished with script execution. For example, you can cause this error by including a QUIT command in one of your scripts.
It is not clear why such a problem would be happening on your server. It is possible that VFP is crashing, or it is possible that one or more of your scripts contain one of the illegal command listed in the FoxWeb documentation.