BDIx::Connector doc indicates that handler option mysql_auto_reconnect must be false. See http://search.cpan.org/perldoc?DBIx%3A%3AConnector%3A%3ADriver%3A%3Amysql So it should not be setted in C4::Context
Created attachment 40062 [details] [review] Bug 14374 - dont use mysql_auto_reconnect with BDIx::Connector BDIx::Connector doc indicates that handler option mysql_auto_reconnect must be false. See http://search.cpan.org/perldoc?DBIx%3A%3AConnector%3A%3ADriver%3A%3Amysql This patch removes this option setting in C4::Context Test plan : - Check connection to database does not fail for a long time page, such as a huge report
Hi, (In reply to Fridolin SOMERS from comment #1) > Created attachment 40062 [details] [review] [review] > Bug 14374 - dont use mysql_auto_reconnect with BDIx::Connector Curious new DBIx user questions: 1/ Shouldn't this bug be dependent on bug #14375 ? 2/ Unless it is dependent on ^^^, would it not be better to set it to "0" instead of removing it? <quote>Note that if you are using a module or framework that performs reconnections for you (for example DBIx::Connector in fixup mode), this value must be set to 0.</quote> - http://search.cpan.org/~capttofu/DBD-mysql-4.031/lib/DBD/mysql.pm thanks -indranil
Shouldn't this bug be merged into Bug 14375? You cannot disable - $dbh->{mysql_auto_reconnect} = 1; Without first introducing the DBIx::Connector?
(In reply to Olli-Antti Kivilahti from comment #3) > Shouldn't this bug be merged into Bug 14375? > You cannot disable > - $dbh->{mysql_auto_reconnect} = 1; > Without first introducing the DBIx::Connector? Bug 14375 does not introduce the use of DBIx::Connector, it's Bug 13645 pushed since 3.16.
DBIx::Connector is now gone, see bug 14778.