增加重连

This commit is contained in:
qiyunfanbo126.com 2025-01-22 17:40:47 +08:00
parent 0783881810
commit 4ba52c9de1
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ func (t *TcpHelper) watch(conn net.Conn) {
if err == nil && n > 0 {
recvStr := string(buffer[:n])
//fmt.Println("结果recvStr:", recvStr)
if recvStr == "1" {
if recvStr == "5" {
fmt.Println("客户端繁忙")
atomic.StoreInt32(t.Full, 1)
} else if recvStr == "2" {