5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-21 18:03:56 +03:00

cli: qm: increase timeout for monitor commands to 30 seconds

The default timeout is 5 seconds, but some HMP commands (e.g.
disk-related ones) might take longer than that. It's still an
interactive session, so use 30 seconds for now. Should there be any
user-complains about frequent timeouts, it could still be increased
further.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fiona Ebner 2024-05-03 13:19:53 +02:00 committed by Fabian Grünbichler
parent 3281138ab7
commit 990e32ff1b

View File

@ -512,7 +512,7 @@ __PACKAGE__->register_method ({
next if $input =~ m/^\s*$/;
last if $input =~ m/^\s*q(uit)?\s*$/;
eval { print PVE::QemuServer::Monitor::hmp_cmd($vmid, $input) };
eval { print PVE::QemuServer::Monitor::hmp_cmd($vmid, $input, 30) };
print "ERROR: $@" if $@;
}