From 300f471bab2eb756a5e8111fb2485fb1f933c2ad Mon Sep 17 00:00:00 2001 From: Arceliar Date: Sun, 16 Dec 2018 18:32:50 -0600 Subject: [PATCH] don't SetKeepAlive[Period] on tcp connections, since the behavior is platform specific --- src/yggdrasil/tcp.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/yggdrasil/tcp.go b/src/yggdrasil/tcp.go index 873dd63c..6d923440 100644 --- a/src/yggdrasil/tcp.go +++ b/src/yggdrasil/tcp.go @@ -59,8 +59,6 @@ func (iface *tcpInterface) setExtraOptions(c net.Conn) { switch sock := c.(type) { case *net.TCPConn: sock.SetNoDelay(true) - sock.SetKeepAlive(true) - sock.SetKeepAlivePeriod(iface.tcp_timeout) // TODO something for socks5 default: }