适用于大量并发的频繁连接、断开的网络通讯系统,有效降低TIME_WAIT状态的套接字状态,避免连接数不足。
MaxUserPort : 最大用户端口上限 ,默认 1024 through 5000,可调范围 5,000–65,534 ( port number )
详见:http://technet.microsoft.com/en-us/library/cc938196.aspx
TcpTimedWaitDelay:Socket资源重用时间间隔,默认 0xF0 ( 240 seconds = 4 minutes ),可调范围: 0x1E 到 0x12C ( 30–300 seconds )
详见:http://technet.microsoft.com/en-us/library/cc938217.aspx
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters]
"MaxUserPort"=dword:0000fffa
"TcpTimedWaitDelay"=dword:0000001e
修改后必须重启系统才能生效。