[PATCH - 1/1] libsmb: Sending smb echo or keepalive request on the cached connection before re-using

Stefan (metze) Metzmacher metze at samba.org
Mon Feb 2 22:36:02 MST 2015


Hi Har Gagan Sahai,

> Thanks for reviewing the patch and providing detailed explanation about it. 
> 
> In libsmbclient with SMBv2 we noticed the session handle reuse was failing with error NT_STATUS_CONNECTION_RESET. This 
> session re-use is happening sometimes in less than one minute of last use. After some readings I found this link 
> http://blogs.msdn.com/b/openspecification/archive/2013/03/27/smb-2-x-and-smb-3-0-timeouts-in-windows.aspx
and in
> that the explanation about session expiration timer tells that it is
about 45 secs.

There's a kind of cronjob every running every 45 seconds, which loops
over all existing sessions
and checks if their expiration time (based on the krb5 ticket lifetime
e.g. 10 hours) has expired.

It doesn't mean that connections are disconnected after 45 seconds
without activity.

First we need to fully understand your problem. I've asked some questions
on the bug report https://bugzilla.samba.org/show_bug.cgi?id=11079.

metze

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150203/b8e278c2/attachment.pgp>


More information about the samba-technical mailing list