[prev in list] [next in list] [prev in thread] [next in thread] 

List:       samba-docs
Subject:    Another item for the FAQ
From:       David Collier-Brown <David.Collier-Brown () canada ! sun ! com>
Date:       2000-11-08 18:09:55
[Download RAW message or body]

"David Milligan" <davidm@comrad.co.nz> noted
[about clients disconnecting, and Bad Things happening thereafter]

-- 
I was using Windows 98 to share some drives and had issues with drives
disconnecting as you have described.  After doing some  research I
discovered that Windows NT uses two different autodisconnect parameters;
one
for disconnecting Remote Access Service (RAS) connections and another
for
disconnecting LAN connections. The RAS Autodisconnect parameter is well
documented in the Windows NT Server Remote Access Service manual on page
82,
but the LAN version is undocumented.

The LAN autodisconnect parameter in the registry at
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters
. Its function is to disconnect idle sessions after a set number of
minutes.
The number of minutes can be set at a command prompt using the Net
Config
Server command. For example, to set the autodisconnect value to 30
minutes:

Net Config Server /autodisconnect:30

The valid value range of this REG_DWORD value is -1 to 65535 minutes at
the
command line. To disable autodisconnect set it to: -1
Setting Autodisconnect to 0 does not turn it off and results in very
fast
disconnects, within a few seconds of idle time. (However, the RAS
Autodisconnect parameter is turned off if you set it to a value of 0.)

The valid value range if you edit the LAN autodisconnect parameter in
the
registry is 0 to 4294967295 (Oxffffffff). If you configure the
autodisconnect option to -1 at the command prompt, Autodisconnect is set
to
the upper value in the registry. This is approximately 8,171 years (not
tested should be long enough to be the equivalent of turning
autodisconnect
off."

As advised I was using Win98 to share a drive and I have found that
often
registry settings which in NT are in the "LanManServer\Parameters" key
are
found in Windows 95/98 in the "VxD\VNETSUP" key. I added an entry on my
shared Win98 PC for "Autodisconnect" in this key and set it to decimal
65000
and voila! no more disconnects!

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic