]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Ensure client is marked for close in all error paths
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 19 Jul 2012 10:21:54 +0000 (11:21 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 30 Jul 2012 09:08:41 +0000 (10:08 +0100)
commite5a1bee07a1a50c1b9819c2ee805294e2affdc80
tree580cace966dda3469613866d73c2b1b34b7c888d
parent6ed5a1b9bd6240b8f2736790e48dd1c284c2e0e1
Ensure client is marked for close in all error paths

Currently if the keepalive timer triggers, the 'markClose'
flag is set on the virNetClient. A controlled shutdown will
then be performed. If an I/O error occurs during read or
write of the connection an error is raised back to the
caller, but the connection isn't marked for close. This
patch ensures that all I/O error scenarios always result
in the connection being marked for close.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/rpc/virnetclient.c