TCP/IP Connection Disconnected After Inactive Period

Last reviewed: May 7, 1997
Article ID: Q167833
The information in this article applies to:
  • Microsoft Windows 95
  • Microsoft Windows 95 OEM Service Release versions 1, 2, 2.1

IMPORTANT: This article contains information about editing the registry. Before you edit the registry, you should first make a backup copy of the registry files (System.dat and User.dat). Both are hidden files in the Windows folder.

SYMPTOMS

After a long period of inactivity, you may receive a message that the TCP/IP connection to the server has been disconnected.

CAUSE

This behavior can occur when the session has been inactive for a long period of time and the KeepAliveTime time setting has expired.

RESOLUTION

WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall Windows 95. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

NOTE: For information about how to edit the registry, view the Changing Keys And Values online Help topic in Registry Editor (Regedit.exe). Note that you should make a backup copy of the registry files (System.dat and User.dat) before you edit the registry.

To resolve this issue, add a key to the registry to increase the default value of the KeepAliveTime setting.

The entry described in this article does not normally exist in the Windows 95 registry, and must be added to the following registry key:

   Hkey_Local_Machine\System\CurrentControlSet\Services\VxD\MSTCP

      KeepAliveTime = <32-bit number>

This entry is a Dword value that specifies the connection idle time in milliseconds before TCP begins sending keepalive packets, if keepalive packets are enabled on a connection. The default is 2 hours (7,200,000).

MORE INFORMATION

Windows 95 does not send keepalive packets after the KeepAliveTime value expires. Increasing the KeepAliveTime value keeps the connection open for a longer period of time.

For additional information about TCP/IP registry entries, see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q158474
   TITLE     : Windows 95 TCP/IP Registry Entries 

For additional information about how to back up the registry, see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q139437
   TITLE     : Windows 95 Emergency Recovery Utility


Additional query words: 95
Keywords : 3rdpartynet kbenv kbnetwork msnets osr1 osr2 win95
Version : 95
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 7, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.