mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-29 22:32:23 +08:00
优化http/rtsp推流器/rtmp推流器内存占用
This commit is contained in:
@@ -139,6 +139,8 @@ void RtspPusher::onConnect(const SockException &err) {
|
||||
onPublishResult(err);
|
||||
return;
|
||||
}
|
||||
//推流器不需要多大的接收缓存,节省内存占用
|
||||
_sock->setReadBuffer(std::make_shared<BufferRaw>(1 * 1024));
|
||||
sendAnnounce();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user