From 31285989de3d0dd97d2662c69f0ede20a6d8c44f Mon Sep 17 00:00:00 2001 From: Jason Date: Mon, 12 Aug 2019 12:57:36 +0800 Subject: [PATCH] fix --- proxy/socks/tcp.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proxy/socks/tcp.go b/proxy/socks/tcp.go index 35b05f7..21a55ea 100644 --- a/proxy/socks/tcp.go +++ b/proxy/socks/tcp.go @@ -55,6 +55,7 @@ func (h *tcpHandler) relay(localConn, remoteConn net.Conn) { closeOnce() } else { localConn.SetDeadline(time.Now()) + remoteConn.SetDeadline(time.Now()) tcpCloseRead(remoteConn) } wg.Done() @@ -65,6 +66,7 @@ func (h *tcpHandler) relay(localConn, remoteConn net.Conn) { closeOnce() } else { localConn.SetDeadline(time.Now()) + remoteConn.SetDeadline(time.Now()) tcpCloseRead(localConn) }