Re: [PHP4BETA] httpd processes won't die since upgrade to PHP4
| From: | thies at digicol dot de | Date: | Mon, 12 Jun 2000 09:32:33 +0000 |
| Subject: | Re: [PHP4BETA] httpd processes won't die since upgrade to PHP4 | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-16263@lists.php.net to get a copy of this message | ||
On Mon, Jun 12, 2000 at 04:13:49PM +1000, Chris Beach wrote:
> Hi All :)
plz read:
http://www.php.net/manual/features.connection-handling.php
>
> I have a problem with the following code (sorry if this seems like a bizarre
> thing to do):
>
> <?php
> while(true)
> {
> mysql("UPDATE A RECORD");
> echo "Some stuff";
> flush();
> }
> ?>
>
> When the user closes their browser the associated httpd process doesn't die,
> and the while loop continues to run. Obviously after a while the number of
> httpd processes becomes large and ultimately causes the server to crash.
>
> No suprises there you might say, however this has only been a problem since
> I upgraded from PHP3 to PHP4. I'm running Apache 1.3.12 on RedHat 6.1. Any
> ideas anyone?
>
> Thanks in advance,
>
> Chris
>
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net
--
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany