From 553551d3d59092465cfef677b3f8fa77a7550029 Mon Sep 17 00:00:00 2001 From: Jozef Pistej Date: Thu, 16 May 2024 15:41:21 +0200 Subject: [PATCH] increment connection count after is created --- src/ConnectionPool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ConnectionPool.php b/src/ConnectionPool.php index 6182cf5..4eca026 100644 --- a/src/ConnectionPool.php +++ b/src/ConnectionPool.php @@ -261,9 +261,9 @@ protected function startBalanceTimer(float $interval) protected function createConnection() { - $this->connectionCount++; $connection = $this->connector->connect($this->connectionConfig); $this->lastActiveTime[$connection] = time(); + $this->connectionCount++; return $connection; }