This commit is contained in:
邹宗楠
2022-11-04 15:06:35 +08:00
parent bab030bf39
commit 722997a64b

View File

@@ -46,6 +46,7 @@ func (t *TcpClient) handleConn(c net.Conn) {
buffer = make([]byte, 1024) buffer = make([]byte, 1024)
) )
n, err := c.Read(buffer) n, err := c.Read(buffer)
globals.SugarLogger.Debugf("err ======================%s", err.Error())
if err != nil { if err != nil {
if err == io.EOF { if err == io.EOF {
fmt.Println("connection close") fmt.Println("connection close")