KeepAliveTime
The KeepAliveTime value controls how frequently TCP/IP tries to verify that an idle connection is still intact. If there has been no activity for this amount of time, a keep-alive tranmission will be sent. If the network is intact and the partner is active, the partner will respond. If you need to be sensitive to lost partners, in other word, you need to recognize that the partner has been lost more quickly, consider reducing this value. If idle connections with long periods of inactivity are common and lost partners are uncommon, you may want to increase this value to
reduce overhead. By default, Windows sends a keep-alive message when an idle connection has had no activity for 7,200,000 milliseconds (2 hours). Often 1,800,000 milliseconds is the preferred value so half
closed connections are sensed at 30 minutes. Use this procedure to view
or customize your value.
Start the regedit command, navigate to the
HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Ser vices\\Tcpip\\Parameters registry subkey, and create or set new a REG_DWORD value named KeepAliveTime.
Set this value to an appropriate number of milliseconds.
Close the registry editor.
Stop and restart the system.
KeepAliveInterval
The KeepAliveInterval value determines how often TCP/IP repeats keep-alive transmissions when a keep-alive response is not received from the partner. The connection will be abandoned when the number of consecutive keep-alive transmissions with no response exceeds the value of the TcpMaxDataRetransmissions. If long response times are expected, you may need to increase this value to reduce overhead. If you need to reduce the time spent verifying that a partner has been
lost, consider reducing this value or the TcpMaxDataRetransmissions value. By default, Windows waits 1000 milliseconds (1 second) for a keep-alive response before resending the keep-alive message.
Use this procedure to view or customize your value.
Start the regedit command, navigate to the
HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Ser vices\\Tcpip\\Parameters registry subkey, and create or set new a REG_DWORD value named KeepAliveInterval.
Set this value to an appropriate number of milliseconds.
Close the registry editor.
Stop and restart the system
MaxUserPort
The MaxUserPort value determines the highest port number that TCP/IP can assign when an application requests an available user port from the system. If your system reports Erro establishing socket exceptions, it may be caused by an inadequate number of anonymous (ephemeral) ports, especially if your system opens a large number of ports to establish
connections to web services, a database, or other remote resources.
By default, Windows reserves port numbers 1024 to 5000 for anonymous (ephemeral) ports A common practice is to set this value to 32768. Use this procedure to view or customize your value.
Start the regedit command, navigate to the
HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Ser vices\\TCPIP\\Parameters registry subkey, and create a new REG_DWORD value named MaxUserPort.
Set this value to at least decimal 32768.
Close the registry editor.
Stop and restart the system.
|