Skip to content

Instantly share code, notes, and snippets.

@linxiaobai
Last active June 4, 2019 11:27
Show Gist options
  • Save linxiaobai/3f5841a2a2e348e30f7b195c37455bc9 to your computer and use it in GitHub Desktop.
Save linxiaobai/3f5841a2a2e348e30f7b195c37455bc9 to your computer and use it in GitHub Desktop.
tcpkill
sudo tcpkill -i en0 "host ${ip} and port ${port}"
ip:连接对端地址
port:连接对端端口
执行完会反复kill掉tcp连接,模拟连接异常情况
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment