note 38124 rejected from function.mysql-close by didou
| From: | didou@php.net | Date: | Tue, 09 Dec 2003 12:28:35 +0000 |
| Subject: | note 38124 rejected from function.mysql-close by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-61680@lists.php.net to get a copy of this message | ||
Note Submitter: zlosliwiec@wizaz.pl
----
I have same problem. Linux Red Hat 9 with php 4.3.4 & mysql 4.0.16.
A connection
$link = mysql_connect($server, $db_user, $db_pass);
for some reasons, which are unknown to me, is not always closed when called with
mysql_close($link);
I can quite often see it hanging in process list with status "sleep" for some looooooong
seconds. I am trying to close it on other way by setting wait_timeout set to 30 seconds, but for
busy sites it is a big issue, as resources are "sleeping" too ;-(