"Peter Kuppelwieser" <[EMAIL PROTECTED]> wrote:
> I have an problem with on of our scripts, and some caching proxy servers
>
> the script produces output, then it does a flush(),
> After this, the script does a sleep(10) and then it does a db-query
without
> producing html output.
>
> normally the browsers get the page after the flush() command
> but on some proxy servers, the page is forwarded to the browser
> only after the proxy server has terminated the connection to the apache
> webserver (after the 10 secs).
>
> my question:
>
> Is it possible to terminate the tcpIP connection, before the php script
ends?
> (I think this would solve my problem)

Perhaps register_shutdown_function() will do the trick.  I've used it on
scripts where a call to an external command or long DB operation took a long
time, but didn't affect the browser output.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to