Hi
I'm using a PHP script with socket connections to transfer data between the browser and an application. It uses server push to display the data, so this means that the connection stays open as long as the user doesn't press the Stop button. However, when the user aborts the data stream (i.e. pushing the browser's Stop button), the socket server still thinks the connection is open and keeps sending data, which causes the server socket application to crash. I know there have to be techniques to prevent the crash on the server side, but I was wondering if there is a way to make a script send "a last command" before the connection is actually broken (in my case, the fclose command)?
Thanks
Tim