User Tools

Site Tools


faq:tcp_ip_timeout_values_windows_server_family

TCP/IP Timeout Value for the Microsoft Windows operating system

Problems exist where a network dropout or a computer failure will 'lock' a terminal, and the user will not be able to log into System Five until the lock is reset. This is a Windows issue which can be easily resolved.

The default Microsoft Windows timeout value for improperly disconnected TCP/IP connections is two (2) hours. While it is possible to use the Pervasive Monitor Utility to manually delete these sessions, it is generally not recommended as it can be very easy to remove the wrong user or all users.

By changing the TCP/IP timeout value on the server you can reduce the delay from the default two(2) hours to three (3) minutes.

  1. Open the Microsoft Windows Registry Editor ( START / RUN / regedit <enter> )
  2. Browse to the “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters” key
  3. Locate the Value “KeepAliveTime”. If it does not exist, create a new REG_DWORD Value called “KeepAliveTime”
  4. Set the Value “KeepAliveTime” to decimal 180000
  5. Exit the registry editor
  6. Reboot your machine for the changes to take effect

Please be aware that the capitalisation in KeepAliveTime is important!

The “KeepAliveTime” setting affects the whole TCP/IP protocol stack not just Pervasive.SQL. This information is also on the Microsoft Knowledgebase, go to:
TCP/IP and NetBT configuration parameters for Windows 2000 or Windows NT
TCP/IP and NBT configuration parameters for Windows XP

Registry edit screenshot:


Verified for Windows Server 2003 and 2008
Reviewed: 31-May-2010

faq/tcp_ip_timeout_values_windows_server_family.txt · Last modified: 2010/05/31 14:53 by andrew