mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-12-31 22:14:56 +00:00
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:
parent
4ee69c54f6
commit
a0541b7149
@ -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 $@;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user