From 0224b489c0dcfc888f99f1638f5a555ed7a242b1 Mon Sep 17 00:00:00 2001 From: GoEdgeLab 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()