From d1cd8b0d5cc232bcb18682a7a5de8ffcede949fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 3 Apr 2023 00:43:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kiri-engine/Pool/Connection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiri-engine/Pool/Connection.php b/kiri-engine/Pool/Connection.php index eb19cf3c..f0e05793 100644 --- a/kiri-engine/Pool/Connection.php +++ b/kiri-engine/Pool/Connection.php @@ -154,8 +154,8 @@ class Connection extends Component { return function () use ($config) { if ($this->total >= 300) { - $connect = $this->pool->waite($config['cds'], 30); - if ($connect === false) { + $connect = $this->pool->waite($config['cds'], 60); + if (!($connect instanceof \Database\Mysql\PDO)) { throw new Exception("Get database link wait timeout."); } }