The Samba-Bugzilla – Bug 13218
SMB2 keepalive/echo terminates connection
Last modified: 2018-01-13 16:12:48 UTC
I think I am experiencing a bug in the implementation of SMB2 keepalives. As
libsmbclient does not set the session for the echo request, the server used in
my environment responds with STATUS_USER_SESSION_DELETED, which is the
expected behavior (see [1,2]). As the server response indicates an
error, the client disconnects. Ultimately, this leads to a new
connection for every operation, which introduces painful delays.
I first experienced this behavior using libsmbclient 4.7.0 on a Fedora Linux 27. It looks like older versions would behave the same, but 4.7 was the first using SMB2 in my setup.
Unfortunately, I am not able to share PCAPs publicly.