php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12705 persistent connections don't go away when the database server dies
Submitted: 2001-08-12 03:03 UTC Modified: 2001-12-13 06:26 UTC
From: patrick at kia dot net Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.5 OS: FreeBSD 3.4
Private report: No CVE-ID: None
 [2001-08-12 03:03 UTC] patrick at kia dot net
As in bug #1441. mysql_pconnect().

To replicate:

1. use mysql_pconnect() to open a connection to a mysql database.
2. use the connection to run a query.
3. shut down the database.
4. try to use the connection; notice that it's bad.
5. ask for another connection to the mysql database; notice that it doesn't work (not surprisingly)
6. restart the mysql database.
7. use mysql_pconnect() to open a connection to a mysql database.
8. notice that the connection does not work, though the database is now available.

It seems the problem is in the connection pool. Bad connections should be thrown away so they can be used by good ones.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-22 03:22 UTC] mfischer@php.net
Can you try with latest RC and see if it works

http://www.php.net/~zeev/php-4.1.0RC3.tar.gz

Feedback.


 [2001-12-13 06:26 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 05:01:29 2024 UTC