This commit is contained in:
邹宗楠
2023-06-05 15:36:22 +08:00
parent 765517013c
commit ad54650303

View File

@@ -104,12 +104,12 @@ func handleConn(c net.Conn, t *TcpClient) error {
)
// 第一种
buffer, n, err := ConReadAll(c)
globals.SugarLogger.Debugf("ConReadAll : %s,%d,%v", string(buffer), n, err)
//buffer, n, err := ConReadAll(c)
//globals.SugarLogger.Debugf("ConReadAll : %s,%d,%v", string(buffer), n, err)
// 第二种
//buffer, n, err := ConnReadFull(c)
//globals.SugarLogger.Debugf("ConnReadFull : %s,%d,%v", string(buffer), n, err)
//// 第三种(正常)
buffer, n, err := ConnReadFull(c)
globals.SugarLogger.Debugf("ConnReadFull : %s,%d,%v", string(buffer), n, err)
// 第三种(正常)
//buffer, n, err := ConnRead(c)
//globals.SugarLogger.Debugf("ConnRead : %s,%d,%v", string(buffer), n, err)