client rpc: Process pending data on error
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 <62bdf77dc47919a4d59a91822129d14633cfca81@redhat.com>

agx/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,olafhering/libvirt,jardasgit/libvirt,eskultety/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,crobinso/libvirt,jardasgit/libvirt,taget/libvirt,jardasgit/libvirt,jfehlig/libvirt,libvirt/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,datto/libvirt,datto/libvirt,andreabolognani/libvirt,datto/libvirt,nertpinx/libvirt,olafhering/libvirt,jardasgit/libvirt,eskultety/libvirt,nertpinx/libvirt,libvirt/libvirt,rlaager/libvirt,taget/libvirt,agx/libvirt,taget/libvirt,eskultety/libvirt,zippy2/libvirt,libvirt/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,jfehlig/libvirt,jardasgit/libvirt,zippy2/libvirt,taget/libvirt,agx/libvirt,agx/libvirt,VenkatDatta/libvirt,eskultety/libvirt,eskultety/libvirt,nertpinx/libvirt,rlaager/libvirt,zippy2/libvirt,crobinso/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,rlaager/libvirt,datto/libvirt,taget/libvirt,nertpinx/libvirt,rlaager/libvirt,VenkatDatta/libvirt,olafhering/libvirt,andreabolognani/libvirt,crobinso/libvirt,datto/libvirt,libvirt/libvirt,agx/libvirt,olafhering/libvirt,crobinso/libvirt,rlaager/libvirt,andreabolognani/libvirt,zippy2/libvirt