From 28dab1ebb9ea8b6329a805327383deab269d55d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sun, 6 Sep 2020 05:38:00 +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/Connection.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/System/Pool/Connection.php b/System/Pool/Connection.php index 39419fd7..4c117abe 100644 --- a/System/Pool/Connection.php +++ b/System/Pool/Connection.php @@ -32,7 +32,7 @@ class Connection extends Pool if ($this->creates) { Timer::clear($this->creates); } - Timer::tick(30000, [$this, 'Heartbeat_detection']); + Timer::tick(10000, [$this, 'Heartbeat_detection']); } @@ -44,6 +44,7 @@ class Connection extends Pool public function Heartbeat_detection($timer) { $this->creates = $timer; + $this->debug('Db Heartbeat detection ' . var_export($this->hasCreate, true)); if ($this->lastTime == 0) { return; }