Doc #64549 [Com]: mysqlnd persistent connection handling are not properly pooling

From: Date: Mon, 21 Jun 2021 13:29:20 +0000
Subject: Doc #64549 [Com]: mysqlnd persistent connection handling are not properly pooling
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18893@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64549&edit=1 ID: 64549 Comment by: rgagnon24 at gmail dot com Reported by: rgagnon24 at gmail dot com Summary: mysqlnd persistent connection handling are not properly pooling Status: Verified Type: Documentation Problem Package: PDO MySQL Operating System: CentOS 5.9 PHP Version: 5.3.23 Block user comment: N Private report: N New Comment: Ok, so that sort of makes sense that there is a connection pool per worker in apache, but the bug noted in the comment from "[2013-04-02 16:47 UTC]" still exists that emits an error about the connection being dead even though one is returned after being reconnected. Previous Comments: ------------------------------------------------------------------------ [2021-06-21 09:34:38] cmb@php.net Indeed, the persistent connections and the stats are stored separately for each worker process (or thread), so in a typical scenario with multiple workers, pooling may not work as expected. The respective documentation[1] should clarify that; the note about ODBC connection pooling already hints at this, but is not general enough. [1] <https://www.php.net/manual/en/pdo.connections.php> ------------------------------------------------------------------------ [2021-06-20 08:30:25] wf3f2g dot wf2f3f at egrg dot dd maybe you don't understand that each worker process has it's own persistent connection and that every client connection to the Webserver may be handled by a different worker so in the reality you have sooner or later the number of max worker processes mysql connections and hence the concept of persistent database connections is idiotic ------------------------------------------------------------------------ [2021-06-20 06:07:36] rgagnon24 at gmail dot com Changing Summary ------------------------------------------------------------------------ [2021-06-20 06:06:34] rgagnon24 at gmail dot com Why is it I received an email that said I could re-open the case if the problem still exists, yet when I do (which the correct password), it says "you are not allowed to change a ticket to that state" (or something like that ------------------------------------------------------------------------ [2021-06-20 06:05:46] rgagnon24 at gmail dot com Why is it I received an email that said I could re-open the case if the problem still exists, yet when I do (which the correct password), it says " ------------------------------------------------------------------------ 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 https://bugs.php.net/bug.php?id=64549 -- Edit this bug report at https://bugs.php.net/bug.php?id=64549&edit=1

« previous php.doc.bugs (#18893) next »