• P
    keepalive: Add ability to disable keepalive messages · 6f429469
    Peter Krempa 提交于
    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
    (cherry picked from commit 6446a9e2)
    6f429469
virnetclient.h 3.9 KB