rtp级联网络慢时默认不限制源端接收网速 (#4359)

This commit is contained in:
sbkyy 2025-07-26 15:44:29 +08:00 committed by GitHub
parent 9d18015e32
commit 6ccbd3aafb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -175,6 +175,9 @@ public:
std::string recv_stream_app;
std::string recv_stream_vhost;
// rtp tcp模式发送时busy时, origin 接收限流, 默认不启用
bool enable_origin_recv_limit = false;
};
// 开始发送ps-rtp [AUTO-TRANSLATED:a51796fa]

View File

@ -451,7 +451,7 @@ void RtpSender::onFlushRtpList(shared_ptr<List<Buffer::Ptr>> rtp_list) {
}
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);
}
});