From 0544028cf49969dcd752133adb2ff038a9a5320d Mon Sep 17 00:00:00 2001 From: asabya Date: Tue, 29 Oct 2024 08:05:29 +0530 Subject: [PATCH] port fix on windows --- .github/workflows/go.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index be2382c6..648f7484 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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'