mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-13 21:47:50 +08:00
rtp级联网络慢时默认不限制源端接收网速 (#4359)
This commit is contained in:
parent
9d18015e32
commit
6ccbd3aafb
@ -175,6 +175,9 @@ public:
|
|||||||
|
|
||||||
std::string recv_stream_app;
|
std::string recv_stream_app;
|
||||||
std::string recv_stream_vhost;
|
std::string recv_stream_vhost;
|
||||||
|
|
||||||
|
// rtp tcp模式发送时busy时, origin 接收限流, 默认不启用
|
||||||
|
bool enable_origin_recv_limit = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
// 开始发送ps-rtp [AUTO-TRANSLATED:a51796fa]
|
// 开始发送ps-rtp [AUTO-TRANSLATED:a51796fa]
|
||||||
|
|||||||
@ -451,7 +451,7 @@ void RtpSender::onFlushRtpList(shared_ptr<List<Buffer::Ptr>> rtp_list) {
|
|||||||
}
|
}
|
||||||
default: CHECK(0);
|
default: CHECK(0);
|
||||||
}
|
}
|
||||||
if (_socket_rtp->sockType() == toolkit::SockNum::Sock_TCP && _socket_rtp->isSocketBusy() && _origin_socket) {
|
if (_args.enable_origin_recv_limit && _socket_rtp->sockType() == toolkit::SockNum::Sock_TCP && _socket_rtp->isSocketBusy() && _origin_socket) {
|
||||||
_origin_socket->enableRecv(false);
|
_origin_socket->enableRecv(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user