From 6a9114fd9aa95d09346e44d5dfe920f98bf7abe2 Mon Sep 17 00:00:00 2001 From: whwyy Date: Sat, 25 Nov 2023 17:46:47 +0800 Subject: [PATCH] eee --- kiri-engine/Redis/Redis.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kiri-engine/Redis/Redis.php b/kiri-engine/Redis/Redis.php index 5562d964..364b10e2 100644 --- a/kiri-engine/Redis/Redis.php +++ b/kiri-engine/Redis/Redis.php @@ -154,7 +154,9 @@ SCRIPT; } catch (\Throwable $throwable) { return trigger_print_error(throwable($throwable)); } finally { - $this->pool()->push($this->host, $client); + if ($client->ping('h') == 'h') { + $this->pool()->push($this->host, $client); + } } }