• S
    Fix reconnect to not defer smb3 session reconnect long after socket reconnect · 4fcd1813
    Steve French 提交于
    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: NSteve French <steve.french@primarydata.com>
    Acked-by: NPavel Shilovsky <pshilovsky@samba.org>
    4fcd1813
smb2pdu.c 81.1 KB