From 20fc79a8ae91fe426ed0ed042d0f1a7ca9d0746b Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Mon, 2 Jan 2023 10:44:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/client_conn.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/nodes/client_conn.go b/internal/nodes/client_conn.go index d35d723..7fe09cf 100644 --- a/internal/nodes/client_conn.go +++ b/internal/nodes/client_conn.go @@ -119,7 +119,7 @@ func (this *ClientConn) Read(b []byte) (n int, err error) { // 关闭连接 if err == io.EOF { - _ = this.rawConn.Close() + _ = this.Close() } return @@ -167,7 +167,7 @@ func (this *ClientConn) Write(b []byte) (n int, err error) { _ = conn.SetLinger(0) } - _ = this.rawConn.Close() + _ = this.Close() } return