From 1c34e496293c58ecb84e6f13790626b19ec2223e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Thu, 12 Jan 2023 19:02:38 +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, 4 insertions(+) diff --git a/internal/nodes/client_conn.go b/internal/nodes/client_conn.go index 4158a68..a229c5b 100644 --- a/internal/nodes/client_conn.go +++ b/internal/nodes/client_conn.go @@ -145,6 +145,10 @@ func (this *ClientConn) Read(b []byte) (n int, err error) { } func (this *ClientConn) Write(b []byte) (n int, err error) { + if len(b) == 0 { + return 0, nil + } + if this.isDebugging { this.lastWriteAt = time.Now().Unix()