]> git.proxmox.com Git - mirror_qemu.git/commit
python/aqmp: handle asyncio.TimeoutError on execute()
authorJohn Snow <jsnow@redhat.com>
Mon, 10 Jan 2022 23:28:46 +0000 (18:28 -0500)
committerJohn Snow <jsnow@redhat.com>
Fri, 21 Jan 2022 21:01:31 +0000 (16:01 -0500)
commit3b5bf136f5798a4ea2c66875d6337ca3d6b79434
treef50b83a4bd78a02e59a485c81cd531a970e65f7f
parent3bc72e3aed76e0326703db81964b13f1da075cbf
python/aqmp: handle asyncio.TimeoutError on execute()

This exception can be injected into any await statement. If we are
canceled via timeout, we want to clear the pending execution record on
our way out.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Beraldo Leal <bleal@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
python/qemu/aqmp/qmp_client.py