Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there a way to change default TCP/IP new connection timeout ?

In earlier Windows, timout value was stored in registry, as said here:

Which is the default TCP connect timeout in Windows?

But this is not true for Windows 7

share|improve this question
add comment

1 Answer

But this is not true for Windows 7

It is. KB 170359 How to modify the TCP/IP maximum retransmission timeout:

Change the following key in Windows (2000, XP, 2003, Vista, 2008, 2008 R2, Windows 7): HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters

Value Name:  TcpMaxDataRetransmissions

[...]

Change the following key in Windows (2000, XP, 2003, Vista, 2008, 2008 R2, Windows 7): HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\ID for Adapter

Value Name:  TCPInitialRtt

[...]

Article ID: 170359 - Last Review: February 14, 2012 - Revision: 6.0

APPLIES TO

[...]

  • Windows 7 Professional
  • Windows 7 Ultimate
  • Windows 7 Enterprise

[...]

share|improve this answer
    
This seems to have no effect on my Windows 7 Pro. I've added and changing TcpMaxDataRetransmissions to 32 (0x20), and it still takes only a couple of seconds before active PuTTY connections timeout after I briefly disable routing through sysctl net.inet.ip.forwarding=0 on my router. Doing tcpdump on the router reveals that there are only about 8 packets sent before the connection times out, not the supposed 32. Such brief outages don't affect active connections on OS X. superuser.com/questions/529511/… –  cnst Jan 8 '13 at 20:52
1  
Actually, it worked after I've rebooted! Nothing ever changes in Windows! Seems like you have to reboot, and the setting has no effect on either old or new connections if you simply edit the registry without rebooting! –  cnst Jan 8 '13 at 22:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.