fix(server): rate limit failed server validations on cloud

This commit is contained in:
Andras Bacsai
2026-10-23 11:10:02 +02:00
parent 6977d454ed
commit 6012232e97
21 changed files with 442 additions and 18 deletions
+3 -2
View File
@@ -216,7 +216,7 @@ function instant_remote_process_with_timeout(Collection|array $command, Server $
);
}
function instant_remote_process(Collection|array $command, Server $server, bool $throwError = true, bool $no_sudo = false, ?int $timeout = null, bool $disableMultiplexing = false): ?string
function instant_remote_process(Collection|array $command, Server $server, bool $throwError = true, bool $no_sudo = false, ?int $timeout = null, bool $disableMultiplexing = false, ?int $maxAttempts = null): ?string
{
$command = $command instanceof Collection ? $command->toArray() : $command;
@@ -248,7 +248,8 @@ function instant_remote_process(Collection|array $command, Server $server, bool
'command_preview' => substr($command_string, 0, 100),
'function' => 'instant_remote_process',
],
$throwError
$throwError,
$maxAttempts
);
}