Skip to content

Commit

Permalink
port fix on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
asabya committed Oct 29, 2024
1 parent 5d719f8 commit 54c22d2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ jobs:
- name: Set up port range and TIME_WAIT
if: matrix.os == 'windows-latest'
run: |
# Increase the dynamic port range
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name MaxUserPort -Value 65534 -PropertyType DWord -Force
# Decrease the TIME_WAIT duration
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name TcpTimedWaitDelay -Value 1 -PropertyType DWord -Force
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters' -Name 'TcpTimedWaitDelay' -Type DWord -Value 3 -Force
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters' -Name 'MaxUserPort' -Type DWord -Value 65534 -Force
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters' -Name 'MaxFreeTcbs' -Type DWord -Value 65536 -Force
shell: pwsh
- name: Vet
if: matrix.os == 'ubuntu-latest'
Expand Down

0 comments on commit 54c22d2

Please sign in to comment.