From 485be7cc620e007452abb92042a4ffe0a2ffa1ea Mon Sep 17 00:00:00 2001 From: "qiyunfanbo126.com" <815699> Date: Wed, 22 Jan 2025 17:51:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=87=8D=E8=BF=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/http/tcppool/single.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/http/tcppool/single.go b/app/http/tcppool/single.go index ae2c2f0..38e2f75 100644 --- a/app/http/tcppool/single.go +++ b/app/http/tcppool/single.go @@ -141,6 +141,9 @@ func (t *TcpHelper) watch(conn net.Conn) { } else if recvStr == "2" { fmt.Println("客户端空闲") atomic.StoreInt32(t.Full, 0) + } else if recvStr == "6" { + fmt.Println("客户端心跳") + atomic.StoreInt32(t.Full, 0) } } else { atomic.StoreInt32(t.Full, 1)