api: human monitor: increase timeout to 25 seconds

The default timeout is 5 seconds, but some HMP commands (e.g.
disk-related ones) might take longer than that. The API call is
synchronous, so has to complete within 30 seconds, and since there is
no other costly operation, use 25 seconds.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fiona Ebner 2024-05-03 13:19:51 +02:00 committed by Fabian Grünbichler
parent 4ee69c54f6
commit a0541b7149

View File

@ -4919,7 +4919,7 @@ __PACKAGE__->register_method({
my $res = '';
eval {
$res = PVE::QemuServer::Monitor::hmp_cmd($vmid, $param->{command});
$res = PVE::QemuServer::Monitor::hmp_cmd($vmid, $param->{command}, 25);
};
$res = "ERROR: $@" if $@;