• Alex Elder's avatar
    libceph: clear NEGOTIATING when done · 3ec50d18
    Alex Elder authored
    A connection state's NEGOTIATING bit gets set while in CONNECTING
    state after we have successfully exchanged a ceph banner and IP
    addresses with the connection's peer (the server).  But that bit
    is not cleared again--at least not until another connection attempt
    is initiated.
    
    Instead, clear it as soon as the connection is fully established.
    Also, clear it when a socket connection gets prematurely closed
    in the midst of establishing a ceph connection (in case we had
    reached the point where it was set).
    Signed-off-by: default avatarAlex Elder <elder@inktank.com>
    Reviewed-by: default avatarSage Weil <sage@inktank.com>
    3ec50d18
messenger.c 66.8 KB