Menu
I’m developing a COMET based program using the Multipart-x-mixed-replace method and I’m having an issue. I have a while(1) loop in place and the first time I run it, it’s fine. If I close out of the window and go back into it, it doesn’t work. The issue I’m seeing is that apache/PHP isn’t closing that script and it continues to run. Any ideas on how to get it stop when the window is closed?