[libvirt] [PATCH] Don't attempt to read from a stream if it is closed
Eric Blake
eblake at redhat.com
Tue Aug 16 23:44:21 UTC 2011
On 08/16/2011 05:25 PM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange"<berrange at redhat.com>
>
> The I/O event callback processes incoming packets first, and then
> does outgoing packets. If the incoming packet caused the stream to
> close, then the attempt to process outgoing data resulted in an
> error. This caused libvirt to then send an error back to the client,
> but the stream had already been stopped. This confused the client
> since it sees 2 error events.
>
> * daemon/stream.c: Don't attempt read if stream is closed
> ---
> daemon/stream.c | 10 +++++++++-
> 1 files changed, 9 insertions(+), 1 deletions(-)
ACK.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
More information about the libvir-list
mailing list