去除ultraLowDelay配置项

This commit is contained in:
xiongziliang
2020-04-29 11:08:43 +08:00
parent 4fbd45e408
commit f9df7f5217
9 changed files with 15 additions and 22 deletions

View File

@@ -529,8 +529,8 @@ int RtmpSession::totalReaderCount(MediaSource &sender) {
}
void RtmpSession::setSocketFlags(){
GET_CONFIG(bool,ultraLowDelay,General::kUltraLowDelay);
if(!ultraLowDelay) {
GET_CONFIG(int, mergeWriteMS, General::kMergeWriteMS);
if(mergeWriteMS > 0) {
//推流模式下关闭TCP_NODELAY会增加推流端的延时但是服务器性能将提高
SockUtil::setNoDelay(_sock->rawFD(), false);
//播放模式下开启MSG_MORE会增加延时但是能提高发送性能