mirror of
https://github.com/lkmio/lkm.git
synced 2025-10-05 15:16:49 +08:00
fix: rtmp推拉流频繁创建内存问题
This commit is contained in:
@@ -65,11 +65,7 @@ func (s *server) OnPacket(conn net.Conn, data []byte) []byte {
|
||||
_ = conn.Close()
|
||||
}
|
||||
|
||||
if session.isPublisher {
|
||||
return stream.TCPReceiveBufferPool.Get().([]byte)
|
||||
}
|
||||
|
||||
return nil
|
||||
return session.receiveBuffer
|
||||
}
|
||||
|
||||
func NewServer() Server {
|
||||
|
Reference in New Issue
Block a user