]> git.proxmox.com Git - mirror_qemu.git/commit
python/qemu: qmp: Make accept()'s timeout configurable
authorWainer dos Santos Moschetta <wainersm@redhat.com>
Tue, 4 Feb 2020 14:11:09 +0000 (11:11 -0300)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 7 Feb 2020 14:12:48 +0000 (15:12 +0100)
commit54aafc2fc65231871e744308705c4aa6d283a22d
treee7f9b926ceaf1c7b4c095afa21be676255ef3f03
parenta0a261e47252f2b7b44cbb0999cdafeb6b01bdbb
python/qemu: qmp: Make accept()'s timeout configurable

Currently the timeout of QEMUMonitorProtocol.accept() is
hard-coded to 15.0 seconds. This added the parameter `timeout`
so the value can be configured by the user.

Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-Id: <20200204141111.3207-4-wainersm@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
python/qemu/qmp.py