PHP 4.0 Bug #5474: persistent connections not closed on Apache child exit
| From: | sasha at mysql dot com | Date: | Sat, 08 Jul 2000 22:24:47 +0000 |
| Subject: | PHP 4.0 Bug #5474: persistent connections not closed on Apache child exit | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-23840@lists.php.net to get a copy of this message | ||
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.