From 599475043c4bc25ecd0fa09808dcd0295058033a Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Tue, 20 May 2025 06:35:53 +0400 Subject: [PATCH] =?UTF-8?q?d=C3=A9sactiver=20connexion=20persistante=20par?= =?UTF-8?q?=20d=C3=A9faut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- php/src/db/pgsql/Pgsql.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/php/src/db/pgsql/Pgsql.php b/php/src/db/pgsql/Pgsql.php index efc84a4..f765666 100644 --- a/php/src/db/pgsql/Pgsql.php +++ b/php/src/db/pgsql/Pgsql.php @@ -30,7 +30,11 @@ class Pgsql implements IDatabase { protected const OPTIONS = [ - "persistent" => true, + # XXX désactiver les connexions persistantes par défaut + # pour réactiver par défaut, il faudrait vérifier la connexion à chaque fois + # qu'elle est ouverte avec un "select 1". en effet, l'expérience jusqu'ici + # est que la première connexion après un long timeout échoue + "persistent" => false, "force_new" => false, "serial_support" => true, ];