Skip to content

Commit 6a86de3

Browse files
committed
Set TCP keep alive to 5 minutes
1 parent c28906f commit 6a86de3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/workflow.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ jobs:
104104
runs-on: ${{ matrix.os }}
105105
steps:
106106
- if: ${{ matrix.os == 'windows-latest' }}
107-
run: reg query HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
107+
run: |
108+
reg query HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
109+
reg add HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters /v KeepAliveTime /t REG_DWORD /d 300000
110+
reg query HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
108111
- if: ${{ matrix.os == 'ubuntu-latest' }}
109112
run: |-
110113
sudo swapoff -a

0 commit comments

Comments
 (0)