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);