Skip to content

Instantly share code, notes, and snippets.

@extrabacon
Last active June 22, 2023 20:04
Show Gist options
  • Save extrabacon/10769878 to your computer and use it in GitHub Desktop.
Save extrabacon/10769878 to your computer and use it in GitHub Desktop.
TCP keep-alives on Mac
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