ID:               36602
 Comment by:       damien dot harper at gmail dot com
 Reported By:      nerve at gmx dot net
 Status:           Open
 Bug Type:         PDO related
 Operating System: Gentoo Linux
 PHP Version:      5.1.2
 New Comment:

I'm running a debian box dual Xeon 2 gigs of RAM and powering Apache
2.2.0, PHP 5.1.2, MySQL 5.0.18, PDO_mysql 5.0.18 and getting the same
issues.

It would be really nice to be able to set the persistent connections
lifetime.

Otherwise, PDO should be smart enough to autodetect dead connections
and avoid to return them.


Previous Comments:
------------------------------------------------------------------------

[2006-03-08 15:54:03] nerve at gmx dot net

Or an other idea, how about the posibility to specify a time after
which the persistent connection is closed ? (Aka timeout).

I want beleve that mysql is the only pdo backend 
with useles persistent connections.

I (and every other ho is using persistent connections for a big or
important aplication) thank you for a good solution.

Daniel Heule

------------------------------------------------------------------------

[2006-03-08 15:48:27] nerve at gmx dot net

And what is abaut a new method 
to destroy the death persistent object ?
So every user can destroy it and recreate the persistent connection
without restarting the webserver ?

Not all php users have the choise to restart the webserver if a
persistent connection is going to hell ?

Thank you
Daniel

------------------------------------------------------------------------

[2006-03-04 23:56:31] nerve at gmx dot net

Thank you for your good help ;-(,
clearly it's in the docu,
but in this case persistent connections are useles ;-(

------------------------------------------------------------------------

[2006-03-04 22:04:38] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

As this is documented clearly in mysql documentation -> bogus.

------------------------------------------------------------------------

[2006-03-04 09:42:24] nerve at gmx dot net

That's right, after installing the new mysql i havent testet it. 
But what to do ? I can't explicitli close the persistent connections
until apache is restartet. 
Same problem happen if mysql timeout is reached.

Can we make a solution for the php user how don't want to programm a
workaround to normal connections ? (Transparent solution in php source
code ? )

Thank's for your help.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/36602

-- 
Edit this bug report at http://bugs.php.net/?id=36602&edit=1

Reply via email to