mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-20 07:12:21 +08:00
优化nack重传rtt间隔时间估算逻辑
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user