增加重连
This commit is contained in:
parent
0783881810
commit
4ba52c9de1
|
@ -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" {
|
||||
|
|
Loading…
Reference in New Issue