[libvirt] [PATCH] Send back an error if we get unexpected stream control message

Eric Blake eblake at redhat.com
Thu Jun 30 16:22:17 UTC 2011


On 06/30/2011 10:10 AM, Daniel P. Berrange wrote:
> We ignore any stream data packets which come in for streams which
> are not registered, since these packets are async and do not have
> a reply. If we get a stream control packet though we must send back
> an actual error, otherwise a (broken) client may hang forever
> making it hard to diagnose the client bug.
> 
> * src/rpc/virnetserverprogram.c: Send back error for unexpected
>   stream control messages
> ---
>  src/rpc/virnetserverprogram.c |   25 +++++++++++++++++--------
>  1 files changed, 17 insertions(+), 8 deletions(-)

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110630/25cc9e74/attachment-0001.sig>


More information about the libvir-list mailing list