From 478226e4798cc7df35746ffef6be333e5c7f74a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B2=B3?= Date: Fri, 11 Jan 2019 10:44:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/conn.go b/utils/conn.go index f7c9941..a61c1db 100755 --- a/utils/conn.go +++ b/utils/conn.go @@ -141,7 +141,7 @@ func NewConn(conn net.Conn) *Conn { //读取指定长度内容 func (s *Conn) ReadLen(cLen int) ([]byte, error) { - if cLen > 65535 { + if cLen > 65536 { return nil, errors.New("长度错误") } buf := bufPool.Get().([]byte)[:cLen]