]> xenbits.xensource.com Git - libvirt.git/commit
keepalive: Add ability to disable keepalive messages
authorPeter Krempa <pkrempa@redhat.com>
Tue, 24 Apr 2012 14:38:41 +0000 (16:38 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 26 Apr 2012 09:35:34 +0000 (11:35 +0200)
commit6446a9e20cc65561ce6061742baf35a3a63d5ba1
tree0871698125cf5ce8d02d595defa6f3a946a512a0
parentf78024b9f594605053184ee41a5cba88ce3a2c8b
keepalive: Add ability to disable keepalive messages

The docs for virConnectSetKeepAlive() advertise that this function
should be able to disable keepalives on negative or zero interval time.

This patch removes the check that prohibited this and adds code to
disable keepalives on negative/zero interval.

* src/libvirt.c: virConnectSetKeepAlive(): - remove check for negative
                                             values
* src/rpc/virnetclient.c
* src/rpc/virnetclient.h: - add virNetClientKeepAliveStop() to disable
                            keepalive messages
* src/remote/remote_driver.c: remoteSetKeepAlive(): -add ability to
                                                     disable keepalives
src/libvirt.c
src/probes.d
src/remote/remote_driver.c
src/rpc/virkeepalive.c
src/rpc/virkeepalive.h
src/rpc/virnetclient.c
src/rpc/virnetclient.h