]> xenbits.xensource.com Git - libvirt.git/commit
qemu: agent: skip outdated sync replies
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Fri, 16 Sep 2016 10:35:34 +0000 (13:35 +0300)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 20 Sep 2016 14:27:58 +0000 (16:27 +0200)
commit5e5019bf78159d3b5bc2645865b1ca98fb4063c1
tree6dcb0ecba4c1cbe92a4207b59b429d78bd2c7f7e
parent832d48d790debbd3e8681ed26fc169871ef4fefd
qemu: agent: skip outdated sync replies

When we wait for sync reply we can receive delayed
reply to syncs or commands that were sent erlier. We can
safely skip them until we receive sync reply with correct id.
There is no much sense report this situation to client.
Actually with a bit of "luck" if we involve client into
this the play can go on forever: send sync 0, receive
sync reply -1, send sync 1, receive reply 0 ...
src/qemu/qemu_agent.c