> I think that libvirt sent always "guest-sync" before doing the real command, 
> to
> see the if guest-agent is alive.
> 
> So, I think we can sent guest-sync with a real small timeout, like 1s, before 
> doing
> a longer qga command which need a bigger timeout.

Ah, OK. Or we can save the state of the last command into a temp file,
so that we can avoid the delay?

if (last_command_was_successful()) {
        run_qmp_command()
} else {
        test_conn_with_small_timeout()
        run_qmp_command()
}

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

Reply via email to