]> git.ipfire.org Git - thirdparty/libvirt.git/commit
client rpc: Don't drop non-blocking calls
authorJiri Denemark <jdenemar@redhat.com>
Fri, 8 Jun 2012 12:21:00 +0000 (14:21 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 13 Jun 2012 13:35:31 +0000 (15:35 +0200)
commit78602c4e83bbf51f89c24a0be14074e71d01bf60
tree975d284d82feb60ffdda0a6e179bebc4eaeb565d
parent9e747e5c5079a5aead2f248fc22ff658bd0180be
client rpc: Don't drop non-blocking calls

So far, we were dropping non-blocking calls whenever sending them would
block. In case a client is sending lots of stream calls (which are not
supposed to generate any reply), the assumption that having other calls
in a queue is sufficient to get a reply from the server doesn't work. I
tried to fix this in b1e374a7ac56927cfe62435179bf0bba1e08b372 but
failed and reverted that commit.

With this patch, non-blocking calls are never dropped (unless the
connection is being closed) and will always be sent.
src/rpc/virnetclient.c