From e1a5b617082994c3dbb790bf36feb944a0cea2b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 15 Feb 2021 20:55:55 +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 | 1 + System/Pool/Redis.php | 1 + 2 files changed, 2 insertions(+) diff --git a/System/Pool/Connection.php b/System/Pool/Connection.php index fba0ec58..c20db418 100644 --- a/System/Pool/Connection.php +++ b/System/Pool/Connection.php @@ -192,6 +192,7 @@ class Connection extends Pool return $link; }); if ($connections === false) { + Coroutine::sleep(0.003); return $this->newClient($config, $coroutineName); } return $connections; diff --git a/System/Pool/Redis.php b/System/Pool/Redis.php index d69fbf98..239183a2 100644 --- a/System/Pool/Redis.php +++ b/System/Pool/Redis.php @@ -89,6 +89,7 @@ class Redis extends Pool return $redis; }); if ($client === false) { + Coroutine::sleep(0.003); return $this->newClient($config, $coroutineName); } $this->printClients($config['host'], $coroutineName, true);