]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix delayed event delivery when SASL is active
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 17 Mar 2011 15:19:20 +0000 (15:19 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 18 Mar 2011 16:47:46 +0000 (16:47 +0000)
commit635523f74a81c6277f3a6d6f57b48f654ee4833a
tree43d3f140cf068938e3f220ec2c1b5cfd8d08d555
parente0d014f2379ddde175c0c3126273911221c3e645
Fix delayed event delivery when SASL is active

When SASL is active, it was possible that we read and decoded
more data off the wire than we initially wanted. The loop
processing this data terminated after only one message to
avoid delaying the calling thread, but this could delay
event delivery. As long as there is decoded SASL data in
memory, we must process it, before returning to the poll()
event loop.

This is a counterpart to the same kind of issue solved in

  commit 68d2c3482fa16801f8e6ca5c42698319bb87f385

in a different area of the code

* src/remote/remote_driver.c: Process all pending SASL data
src/remote/remote_driver.c