]> xenbits.xensource.com Git - libvirt.git/commit
client rpc: Process pending data on error
authorJiri Denemark <jdenemar@redhat.com>
Tue, 15 Sep 2015 14:45:41 +0000 (16:45 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 23 Sep 2015 11:09:50 +0000 (13:09 +0200)
commitadf3be57df74f9298ce246f5d9ea78fef518104f
tree586cc6f3698ee5b3d7e9d747f6762cc026d32c19
parentc91776d5ff9c99dbb711a7f21ecd526984f1806c
client rpc: Process pending data on error

Even though we hit an error in client's IO loop, we still want to
process any pending data. So instead of reporting the error right away,
we can finish the current iteration and report the error once we're done
with it. Note that the error is stored in client->error by
virNetClientMarkClose so we don't need to worry about it being reset or
rewritten by any API we call in the meantime.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/rpc/virnetclient.c