]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Unregister event callback if a fatal error occurs during dispatch
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 15 Jul 2011 10:19:40 +0000 (11:19 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 19 Jul 2011 13:01:19 +0000 (14:01 +0100)
commit07b39a9418a884bf8313959289906293430ed27f
tree50843c84703e7df5960feda6fd90f37446cb44b9
parent8665f85523f0451c12a001988a451fd4f05e7a4b
Unregister event callback if a fatal error occurs during dispatch

If we get an I/O error in the async event callback for an RPC
client, we might not have consumed all pending data off the
wire. This could result in the callback being immediately
invoked again. At which point the same I/O might occur. And
we're invoked again. And again...And again...

Unregistering the async event callback if an error occurs is
a good safety net. The real error will be seen when the next
RPC method is invoked

* src/rpc/virnetclient.c: Unregister event callback on error
src/rpc/virnetclient.c