Re: [libvirt] [PATCH 06/16] Process all pending I/O for a RPC client before checking EOF

2012-07-19 Thread Daniel Veillard
On Wed, Jul 18, 2012 at 05:32:27PM +0100, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" > > In the socket event handler for the RPC client we must deal > with read/write events, before checking for EOF, otherwise > we might close the socket before we've read & acted upon the > last RPC m

[libvirt] [PATCH 06/16] Process all pending I/O for a RPC client before checking EOF

2012-07-18 Thread Daniel P. Berrange
From: "Daniel P. Berrange" In the socket event handler for the RPC client we must deal with read/write events, before checking for EOF, otherwise we might close the socket before we've read & acted upon the last RPC messages Signed-off-by: Daniel P. Berrange --- src/rpc/virnetclient.c | 15 +