Closed hijk1234 closed 6 years ago
有,但还有bug。
gwind@t460s:/data/lab$ otunnel connect -h
NAME:
otunnel connect - connect to a server
USAGE:
otunnel connect [command options] [arguments...]
OPTIONS:
-d, --debug debug log level
-P value, --proto value the proto between two points (default: "tcp")
-s value, --secret value secret phrase
--keyiter value key iter times for pbkdf2 (default: 0)
--keylen value key length for pbkdf2 (default: 0)
-t value, --tunnel value new tunnel
--keepalive value keepalive interval (default: 30)
gwind@t460s:/data/lab$ otunnel listen -h
NAME:
otunnel listen - Listen as a server, wait connects from clients.
USAGE:
otunnel listen [command options] [arguments...]
OPTIONS:
-d, --debug debug log level
-P value, --proto value the proto between two points (default: "tcp")
-s value, --secret value secret phrase
--keyiter value key iter times for pbkdf2 (default: 0)
--keylen value key length for pbkdf2 (default: 0)
--keepalive value keepalive interval (default: 30)
https://github.com/ooclab/es/blob/master/link/link.go#L68-L71
btw, 试过 tcp keepalive 和普通的 ping 测试,都没能完美解决 KEEPALIVE 问题
客户端和服务端: heartbeat_interval = 15 heartbeat_timeout = 40 比如这种的?可以自定义设置的