Re: PHP 4.0 Bug #5474: persistent connections not closed on Apache child exit

From: Date: Fri, 07 Jul 2000 22:46:49 +0000
Subject: Re: PHP 4.0 Bug #5474: persistent connections not closed on Apache child exit
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-23842@lists.php.net to get a copy of this message
Did you actually test that it's not being called? It's supposed to be called. Zeev On 8 Jul 2000 sasha@mysql.com wrote: > From: sasha@mysql.com > Operating system: Linux > PHP version: 4.0.1pl2 > PHP Bug Type: MySQL related > Bug description: persistent connections not closed on Apache child exit > > Set MaxRequestPerChild to 1, set MaxClients to 1, > > mysql_pconnect(); > > hit the script a few times, > > MySQL will see a lot of Aborted_clients ( show status to see it) > > the reason is that persistent connections are not closed with mysql_close() on Apache child > exit - the fix would be to take care of that in the child exit hanlder. > > a call to mysql_close() is part of the protocol, and it is an error to skip it. > > > -- Zeev Suraski <zeev@zend.com> http://www.zend.com/

« previous php.dev (#23842) next »