CLOSE_WAIT - Closing connections to Postgresql database
| From: | Ovidiu EFTIMIE | Date: | Tue, 20 Feb 2001 10:13:36 +0000 |
| Subject: | CLOSE_WAIT - Closing connections to Postgresql database | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-40720@lists.php.net to get a copy of this message | ||
Hi,
I'm using non-persistent connections in a page which is accessed by a client
once a second( yes once a second) for about 12 hours.
Doing a netstat -apn|grep 5432|grep httpd a see that the php doesn't close
the connection, in fact the connection is in CLOSE_WAIT state.
I have tried to let the php to close the connection, but also I have
explicitely close it but the result is the same : the database will no
longer accept connections because the number of allowed clients is reached.
Anybody has any ideea ?
I know that I should use persistent connections but I want to know if this
is a bug or I'm missing something.
I'a running php 4.0.3pl1 on a RH 6.2 box with apache 1.3.14.
Ovidiu