• M
    virsh: Add keepalive in new vshConnect function · 676cb4f4
    Martin Kletzander 提交于
    Introducing keepalive similarly to Guannan around 2 years ago.  Since
    we want to introduce keepalive for every connection, it makes sense to
    wrap the connecting function into new virsh one that can deal
    keepalive as well.
    
    Function vshConnect() is now used for connecting and keepalive added
    in that function (if possible) helps preventing long waits e.g. while
    nework goes down during migration.
    
    This patch also adds the options for keepalive tuning into virsh and
    fails connecting only when keepalives are explicitly requested and
    cannot be set (whether it is due to missing support in connected
    driver or remote server).  If not explicitely requested, a debug
    message is printed (hence the addition to virsh-optparse test).
    
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1073506
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=822839Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
    676cb4f4
virsh.c 94.7 KB