I know that to do this somehow ignore_user_abort should probably be set to
true for the purpose of the script itself. Then something could be
done...but I wonder along with you, is there a way to tell the client
"That's all there is! stop waiting!"

*scratches head*

Perhaps the outbut buffer may be part of the answer?

Perhaps PHP could use ob_start, then use ob_get_length to see how how much
content must be sent.

Then send a header with the content length, and clear the buffer. Could that
perhaps make apache end the session? Or perhaps some socket use to
forcefully close the connection, but that may make apache angry and create
some errors...but then again, it probably wouldn't.


This would answer all kinds of problems with mail() slowing down a script,
or sleep() use, etc.

Anyone have other theories or better yet, a solution? This would allow me to
have _so_ much fun playing around with the possibilities, no matter how
intensive it'd have to be.

Does any other language have something exactly like this? Like Perl/C CGI,
ASP, or JSP? Or is this purely a question of web-server support?



--
Plutarck
Should be working on something...
...but forgot what it was.





"Peter Kuppelwieser" <[EMAIL PROTECTED]> wrote in message
01040622051504.23709@pjotr">news:01040622051504.23709@pjotr...
> Hello!
>
> 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)
> Any other Ideas?
>
> Thank you, Peter Kuppelwieser
>
> --
> 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]
>



-- 
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