A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Haivision/srt/commit/26678fe29b9204b1a353df986052c04b00967015 below:

[core] Fixed the issue with RTT in case of bidirectional transmission… · Haivision/srt@26678fe · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+6

-8

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+6

-8

lines changed Original file line number Diff line number Diff line change

@@ -8452,16 +8452,14 @@ void srt::CUDT::processCtrlAck(const CPacket &ctrlpkt, const steady_clock::time_

8452 8452

// TODO: The case of bidirectional transmission requires further

8453 8453

// improvements and testing. Double smoothing is applied here to be

8454 8454

// consistent with the previous behavior.

8455 - 8456 -

int crtt = m_iSRTT.load(), crttvar = m_iRTTVar.load();

8457 - 8458 -

if (crtt != INITIAL_RTT && rttvar != INITIAL_RTTVAR)

8455 +

if (rtt != INITIAL_RTT && rttvar != INITIAL_RTTVAR)

8459 8456

{

8460 -

crttvar = avg_iir<4>(crttvar, abs(crtt - rtt));

8461 -

crtt = avg_iir<8>(crtt, rtt);

8457 +

int iSRTT = m_iSRTT.load(), iRTTVar = m_iRTTVar.load();

8458 +

iRTTVar = avg_iir<4>(iRTTVar, abs(rtt - iSRTT));

8459 +

iSRTT = avg_iir<8>(iSRTT, rtt);

8460 +

m_iSRTT = iSRTT;

8461 +

m_iRTTVar = iRTTVar;

8462 8462

}

8463 -

m_iSRTT = crtt;

8464 -

m_iRTTVar = crttvar;

8465 8463

}

8466 8464

else // Transmission is unidirectional.

8467 8465

{

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4