From 31a5053bed1abb60e8146ccafe067aff4ab64ff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 5 Jul 2021 17:02:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Pool/ClientsPool.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/System/Pool/ClientsPool.php b/System/Pool/ClientsPool.php index 6d5573f6..38574890 100644 --- a/System/Pool/ClientsPool.php +++ b/System/Pool/ClientsPool.php @@ -166,7 +166,7 @@ class ClientsPool extends Component return; } if ($this->creates === -1) { - $this->creates = Timer::tick(3000, [$this, 'Heartbeat_detection']); + $this->creates = Timer::tick(60000, [$this, 'Heartbeat_detection']); } static::$_connections[$name] = new Channel($max); $this->max = $max; @@ -184,7 +184,7 @@ class ClientsPool extends Component static::$_connections[$name] = new Channel(Config::get('databases.pool.max', 10)); } if ($this->creates === -1) { - $this->creates = Timer::tick(3000, [$this, 'Heartbeat_detection']); + $this->creates = Timer::tick(60000, [$this, 'Heartbeat_detection']); } return static::$_connections[$name]; }