Skip to content
  • Steve French's avatar
    Fix reconnect to not defer smb3 session reconnect long after socket reconnect · 4fcd1813
    Steve French authored
    
    
    Azure server blocks clients that open a socket and don't do anything on it.
    In our reconnect scenarios, we can reconnect the tcp session and
    detect the socket is available but we defer the negprot and SMB3 session
    setup and tree connect reconnection until the next i/o is requested, but
    this looks suspicous to some servers who expect SMB3 negprog and session
    setup soon after a socket is created.
    
    In the echo thread, reconnect SMB3 sessions and tree connections
    that are disconnected.  A later patch will replay persistent (and
    resilient) handle opens.
    
    CC: Stable <stable@vger.kernel.org>
    Signed-off-by: default avatarSteve French <steve.french@primarydata.com>
    Acked-by: default avatarPavel Shilovsky <pshilovsky@samba.org>
    4fcd1813