Skip to content

Commit

Permalink
Update CommandTrait.php
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNN1 committed Sep 9, 2023
1 parent 5ddb0d8 commit bcb930f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Dashboards/Memcached/Compatibility/CommandTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit bcb930f

Please sign in to comment.