This commit is contained in:
suyl
2021-07-22 10:24:05 +08:00
parent e4e114e9d4
commit a8fac9e339

View File

@@ -141,6 +141,10 @@ func ListenTcp() {
return return
} }
globals.SugarLogger.Debugf("begin listenTcp port 8000......") globals.SugarLogger.Debugf("begin listenTcp port 8000......")
go HandleTcpMessages()
go HandleCheckTcpHeart()
//go doPrint(printMsgChanFail)
go doPrint2(printMsgChan)
for { for {
c, err := l.Accept() c, err := l.Accept()
if err != nil { if err != nil {
@@ -149,10 +153,6 @@ func ListenTcp() {
} }
go handleConn(c) go handleConn(c)
} }
go HandleTcpMessages()
go HandleCheckTcpHeart()
go doPrint(printMsgChanFail)
go doPrint2(printMsgChan)
} }
func handleConn(c net.Conn) { func handleConn(c net.Conn) {