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.eb...@proxmox.com>
---
 PVE/CLI/qm.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/CLI/qm.pm b/PVE/CLI/qm.pm
index b105830f..d3dbf7b4 100755
--- a/PVE/CLI/qm.pm
+++ b/PVE/CLI/qm.pm
@@ -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 $@;
        }
 
-- 
2.39.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to