tcp-keepalive
tcp keepalive probe or measure tool
Depends
- Linux/macOS/Solaris/FreeBSD
- Windows
Install
go get github.com/felixge/tcpkeepalive
go get github.com/urfave/cli
git clone https://github.com/Openresty-App/tcp-keepalive
cd tcp-keepalive
go build -o tcp-keepalive
Downloads
provides official pre-built packages
- Linux
- macOS
- Solaris
- FreeBSD
- Windows
Measure
#./tcp-keepalive help measure
NAME:
tcp-keepalive measure - Send tcp heart and statistic
USAGE:
tcp-keepalive measure [command options] [arguments...]
OPTIONS:
--interface value, -i value interface (default: "eth0")
--host value, -H value host (default: "127.0.0.1")
--port value, -P value port (default: 80)
--idleTime value idleTime (default: 3)
--retranCount value retranCount (default: 10)
--interval value interval (default: 3)
./tcp-keepalive measure -H www.baidu.com -P 443
Probe
#./tcp-keepalive help probe
NAME:
tcp-keepalive probe - Check whether the server supports heartbeat
USAGE:
tcp-keepalive probe [command options] [arguments...]
OPTIONS:
--interface value, -i value interface (default: "eth0")
--host value, -H value host (default: "127.0.0.1")
--port value, -P value port (default: 80)
--idleTime value idleTime (default: 3)
--retranCount value retranCount (default: 10)
./tcp-keepalive probe -H www.baidu.com -P 443
Team
This tool is maintained by the following person(s) and a bunch of awesome contributors.
License
MIT License