]> git.proxmox.com Git - qemu-server.git/commitdiff
vzdump: increase PBS 'backup' QMP call timeout
authorStefan Reiter <s.reiter@proxmox.com>
Mon, 8 Mar 2021 15:32:30 +0000 (16:32 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 8 Mar 2021 16:10:07 +0000 (17:10 +0100)
Commit "a941bbd0 client: raise HTTP_TIMEOUT to 120s" in proxmox-backup
did the same, however, we would now still fail after 60 seconds since
the QMP call would time out.

Increase the timeout here to the same +5 seconds to give some time to
receive a response, so if the HTTP call in proxmox-backup times out, we
can still get a useful error message instead of timing out the QMP call
too.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
PVE/VZDump/QemuServer.pm

index 901b36690202ee8d77aa49f17001d4d987e78473..5a9ffab10073234187a81701f271d7a9d1f6f74e 100644 (file)
@@ -521,7 +521,7 @@ sub archive_pbs {
        $params->{'use-dirty-bitmap'} = JSON::true
            if $qemu_support->{'pbs-dirty-bitmap'} && !$is_template;
 
-       $params->{timeout} = 60; # give some time to connect to the backup server
+       $params->{timeout} = 125; # give some time to connect to the backup server
 
        my $res = eval { mon_cmd($vmid, "backup", %$params) };
        my $qmperr = $@;