Last active
February 21, 2019 21:36
-
-
Save bcowell/9ae5c9e1a184d7ea00dffb64d6449b5e to your computer and use it in GitHub Desktop.
Powershell command - Edit TcpTimedWaitDelay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
netsh int ipv4 set dynamicport tcp start=1025 num=64510 | |
netsh int ipv4 show dynamicport tcp | |
New-ItemProperty ` | |
-Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" ` | |
-Name "TcpTimedWaitDelay" ` | |
-Value "30" ` | |
-PropertyType "DWord" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The TcpTimedWaitDelay value determines the length of time that a connection stays in the TIME_WAIT state when being closed. While a connection is in the TIME_WAIT state, the socket pair cannot be reused.
https://docs.microsoft.com/en-us/biztalk/technical-guides/settings-that-can-be-modified-to-improve-network-performance