代码优化

This commit is contained in:
dexter
2023-01-30 22:17:48 +08:00
parent e45e9b2912
commit c4bc6d9742
2 changed files with 66 additions and 76 deletions

View File

@@ -70,7 +70,7 @@ func NewNetConnection(conn net.Conn) *NetConnection {
bandwidth: RTMP_MAX_CHUNK_SIZE << 3,
tmpBuf: make(util.Buffer, 4),
chunkHeader: make(util.Buffer, 0, 16),
bytePool: make(util.BytesPool, 16),
bytePool: make(util.BytesPool, 17),
}
}
func (conn *NetConnection) ReadFull(buf []byte) (n int, err error) {