增加重连
This commit is contained in:
parent
2c62f5d38a
commit
90a4ad85d0
|
@ -144,6 +144,7 @@ func (t *TcpHelper) watch(conn net.Conn) {
|
|||
} else {
|
||||
atomic.StoreInt32(t.Full, 1)
|
||||
utils.Log(nil, "连接关闭", err)
|
||||
t.reconnect(config.GetConf().OrderPort)
|
||||
}
|
||||
}
|
||||
time.Sleep(1 * time.Second)
|
||||
|
|
Loading…
Reference in New Issue