增加重连
This commit is contained in:
parent
26b0a27628
commit
0783881810
|
@ -134,7 +134,7 @@ func (t *TcpHelper) watch(conn net.Conn) {
|
|||
n, err := t.client.Read(buffer[:])
|
||||
if err == nil && n > 0 {
|
||||
recvStr := string(buffer[:n])
|
||||
fmt.Println("结果:recvStr:", recvStr)
|
||||
//fmt.Println("结果:recvStr:", recvStr)
|
||||
if recvStr == "1" {
|
||||
fmt.Println("客户端繁忙")
|
||||
atomic.StoreInt32(t.Full, 1)
|
||||
|
|
Loading…
Reference in New Issue