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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: patrick at kia dot net
New email:
PHP Version: OS:

 

 [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 23 19:01:32 2024 UTC