mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
修改包头len规则
This commit is contained in:
@@ -98,7 +98,6 @@ func (p *MsgParser) Read(conn *TCPConn) ([]byte, error) {
|
||||
return nil, errors.New("message too short")
|
||||
}
|
||||
|
||||
msgLen -= 2
|
||||
// data
|
||||
msgData := make([]byte, msgLen)
|
||||
if _, err := io.ReadFull(conn, msgData); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user