mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
优化nack重传rtt间隔时间估算逻辑
This commit is contained in:
parent
3bc75d6ba8
commit
4942a0f574
@ -201,7 +201,8 @@ void NackContext::clearNackStatus(uint16_t seq) {
|
||||
if (it == _nack_send_status.end()) {
|
||||
return;
|
||||
}
|
||||
auto rtt = getCurrentMillisecond() - it->second.update_stamp;
|
||||
//收到重传包与第一个nack包间的时间约等于rtt时间
|
||||
auto rtt = getCurrentMillisecond() - it->second.first_stamp;
|
||||
_nack_send_status.erase(it);
|
||||
|
||||
if (rtt >= 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user