Disconnected SMB Service dial-up connections do not time out in Windows 2000 Server or in Windows Server 2003 (836040)



The information in this article applies to:

  • Microsoft Windows Server 2003, Standard Edition
  • Microsoft Windows Server 2003, Enterprise Edition
  • Microsoft Windows Server 2003, Web Edition
  • Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Datacenter Server
  • Microsoft Windows 2000 Server

Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

SYMPTOMS

Closed dial-up connections to the SMB Service do not time out in less than two minutes on a computer that is running Microsoft Windows 2000 or Microsoft Windows Server 2003. These connections remain active for an indeterminate period of time. Sometimes, you have to restart the server or use the net session command to clear these connections.

CAUSE

This problem occurs because the TCP keep-alive time for connections to the SMB Service is two minutes, and this is not sufficient time for the auto-disconnect setting of the dialup session.

RESOLUTION

Hotfix information

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

No prerequisites are required.

Restart requirement

You must restart your computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
Windows 2000 Server
   Date         Time   Version            Size    File name
   --------------------------------------------------------------
   13-May-2004  15:26  5.0.2195.6927     238,640  Srv.sys
   13-May-2004  16:38  5.0.2195.6927      76,048  Srvsvc.dll       
 
Windows Server 2003, 32-bit edition
   Date         Time   Version            Size    File name
   --------------------------------------------------------------
   23-Jun-2004  06:39  5.2.3790.186      355,328  Srv.sys	x86
Windows Server 2003, 64-bit edition
   Date         Time   Version            Size    File name
   --------------------------------------------------------------
   23-Jun-2004  17:46  5.2.3790.186      992,256  Srv.sys	IA-64

Registry key activation

Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To control how long to retain a disconnected dial-up session, change the value of the KeepAliveTime registry entry. If you set the KeepAliveTime value data to 0, any disconnected sessions immediately end. If the KeepAliveTime entry is not present, the keep-alive time for a disconnected session is 2 minutes.

To add the KeepAliveTime registry entry and to set the value data to 0, follow these steps:
  1. Click Start, click Run, type regedit, and then click OK.
  2. Locate and then click the following subkey in the registry:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters

  3. On the Edit menu, point to New, and then click DWORD Value.
  4. Type KeepAliveTime, and then press ENTER.
  5. On the Edit menu, click Modify.
  6. Type 0, and then click OK.
  7. Exit Registry Editor.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:

816915 New file naming schema for Microsoft Windows software update packages

824684 Description of the standard terminology that is used to describe Microsoft software updates


Modification Type:MinorLast Reviewed:10/28/2005
Keywords:kbHotfixServer kbQFE kbBug kbfix kbQFE kbWin2000preSP5fix KB836040 kbAudITPRO