From 171fb5194b632e823ca9adf69db676fd38bb74b4 Mon Sep 17 00:00:00 2001 From: csznet Date: Thu, 14 Mar 2024 16:57:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=ADTCP=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E8=BF=9E=E7=BB=AD=E8=AF=BB=E5=86=99=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- forward/forward.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/forward/forward.go b/forward/forward.go index 963c62f..cdc4510 100644 --- a/forward/forward.go +++ b/forward/forward.go @@ -143,10 +143,6 @@ func (cs *ConnectionStats) handleTCPConnection(wg *sync.WaitGroup, clientConn ne defer wg.Done() defer clientConn.Close() - // 设置连接读写超时时间 - clientConn.SetReadDeadline(time.Now().Add(time.Duration(5) * time.Second)) - clientConn.SetWriteDeadline(time.Now().Add(time.Duration(5) * time.Second)) - remoteConn, err := net.Dial("tcp", cs.RemoteAddr+":"+cs.RemotePort) if err != nil { fmt.Println("连接远程地址时发生错误:", err)