This commit is contained in:
邹宗楠
2022-07-27 16:13:05 +08:00
parent 6a06a29e54
commit 2a73940961

View File

@@ -23,6 +23,7 @@ func ListenTcp() {
return return
} }
globals.SugarLogger.Debugf("begin listenTcp port 8000......") globals.SugarLogger.Debugf("begin listenTcp port 8000......")
globals.SugarLogger.Debugf("begin listenTcp port 8000......刘磊")
for { for {
c, err := l.Accept() c, err := l.Accept()
if err != nil { if err != nil {
@@ -34,6 +35,7 @@ func ListenTcp() {
} }
func (t *TcpClient) handleConn(c net.Conn) { func (t *TcpClient) handleConn(c net.Conn) {
globals.SugarLogger.Debugf("begin listenTcp port 8000......刘磊2")
if c == nil { if c == nil {
globals.SugarLogger.Debugf("conn is nil") globals.SugarLogger.Debugf("conn is nil")
return return