diff --git a/src/Dashboards/Memcached/Compatibility/CommandTrait.php b/src/Dashboards/Memcached/Compatibility/CommandTrait.php index 2f0e3db..72a1aab 100644 --- a/src/Dashboards/Memcached/Compatibility/CommandTrait.php +++ b/src/Dashboards/Memcached/Compatibility/CommandTrait.php @@ -108,11 +108,12 @@ private function streamConnection(string $command, bool $array = false) { $buffer = ''; $data = []; + $start_time = time(); while (!feof($stream)) { $buffer .= fgets($stream, 256); - if ($this->checkCommandEnd($command, $buffer)) { + if ($this->checkCommandEnd($command, $buffer) || time() - $start_time > 60) { break; }