Last active
June 22, 2023 20:04
-
-
Save extrabacon/10769878 to your computer and use it in GitHub Desktop.
TCP keep-alives on Mac
This file contains hidden or 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
sudo sysctl -w net.inet.tcp.keepidle=20000 | |
sudo sysctl -w net.inet.tcp.keepintvl=20000 | |
sudo sysctl -w net.inet.tcp.keepinit=20000 | |
sudo sysctl -w net.inet.tcp.always_keepalive=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment