feat: take over

This commit is contained in:
langhuihui
2024-04-08 20:02:17 +08:00
parent dbbf711781
commit e625fe51fc
21 changed files with 396 additions and 312 deletions

View File

@@ -76,7 +76,7 @@ func NewNetConnection(conn net.Conn) *NetConnection {
bandwidth: RTMP_MAX_CHUNK_SIZE << 3,
tmpBuf: make(util.Buffer, 4),
chunkHeader: make(util.Buffer, 0, 16),
ByteChunkPool: util.NewScalableMemoryAllocator(2048, 1),
ByteChunkPool: util.NewScalableMemoryAllocator(2048),
}
}