diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2011-09-21 14:51:33 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2011-09-23 15:18:20 +0100 |
commit | cb61009236a96f16fa7eabc92f5d6ed5f6313163 (patch) | |
tree | 1e880c7c12e8bdc5590e0c1cf761f8453d3805ac /tests/qemuhelptest.c | |
parent | selinux: Correctly report warning if virt_use_nfs not set (diff) | |
download | libvirt-cb61009236a96f16fa7eabc92f5d6ed5f6313163.tar.gz libvirt-cb61009236a96f16fa7eabc92f5d6ed5f6313163.tar.bz2 libvirt-cb61009236a96f16fa7eabc92f5d6ed5f6313163.zip |
Fix synchronous reading of stream data
commit 984840a2c292402926ad100aeea33f8859ff31a9 removed the
notification of waiting calls when VIR_NET_CONTINUE messages
arrive. This was to fix the case of a virStreamAbort() call
being prematurely notified of completion.
The problem is that sometimes there are dummy calls from a
virStreamRecv() call waiting that *do* need to be notified.
These dummy calls should have a status VIR_NET_CONTINUE. So
re-add the notification upon VIR_NET_CONTINUE, but only if
the waiter also has a status of VIR_NET_CONTINUE.
* src/rpc/virnetclient.c: Notify waiting call if stream data
arrives
* src/rpc/virnetclientstream.c: Mark dummy stream read packet
with status VIR_NET_CONTINUE
Diffstat (limited to 'tests/qemuhelptest.c')
0 files changed, 0 insertions, 0 deletions