[Samba] smb keeps stale connections from logged out users and
shut down clients
freggy at gmail.com
Tue Feb 10 12:39:48 GMT 2009
On Tue, Feb 10, 2009 at 10:11 AM, Frederik <freggy at gmail.com> wrote:
> On Mon, Feb 9, 2009 at 3:35 PM, Volker Lendecke
> <Volker.Lendecke at sernet.de> wrote:
>> On Mon, Feb 09, 2009 at 03:17:27PM +0100, Frederik wrote:
>>> We are using Samba 3.0.33 as a PDC and file server for Windows XP
>>> clients, but seem to be suffering lots of stale connections. smbstatus
>>> still shows connections from users already logged out and even from
>>> systems which have already been shut down.
>>> Restarting the samba service, cleans up all stale connections.
>>> We tried deadtime = 5 in the samba configuration file, but this does
>>> not help at all.
>> The parameter "keepalive" doesn't help either?
> No. I added the socket option SO_KEEPALIVE and keepalive = 300 in
> addition to deadtime = 5 which was already there, but smbstatus is
> again showing two different users connected from the same Windows XP
I should add that for those old, already logged out users, smbstatus
only shows locked files with EXCLUSIVE+BATCH oplocks. It seems that
these locks are preventing the user from disappearing from smbstatus.
More information about the samba