diff --git a/src/redis/src/AbstractRedisConnection.php b/src/redis/src/AbstractRedisConnection.php index 796130ab4..b69e64e54 100644 --- a/src/redis/src/AbstractRedisConnection.php +++ b/src/redis/src/AbstractRedisConnection.php @@ -112,7 +112,9 @@ public function reconnect() public function check(): bool { try { - $this->connection->ping(); + if (false === $this->connection->ping()) { + throw new \RuntimeException('Connection lost'); + } $connected = true; } catch (\Throwable $throwable) { $connected = false;