On Sun, 29 Jun 2003 23:41:09 +0200, you wrote:

>is it possible to close the connection to the client/browser without calling
>exit?
>I have an input-script for a chat-system, wich gives a Status 204 No Content
>to the client after submit, wich works great. The problem is, that sometimes
>the script needs some time to finish after sending the 204 and keeps the
>connection over this time, wich couses Internet Explorer and sometimes even
>Mozilla to crash if too much connections to the script are active.

You want to finish up the connection but keep the script around. Hmm... how
about putting your logic into a seperate function, and registering it to be
run on exit with register_shutdown_function()? ("registered shutdown
functions are called after the request has been completed (including sending
any output buffers)")

Or you could move your code into an external script and call it.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to