Skip to content

Commit

Permalink
[core] Increase FlowWindowSize on SND Too-Late Packet Drop (#2815).
Browse files Browse the repository at this point in the history
  • Loading branch information
yomnes0 authored Nov 3, 2023
1 parent 4039302 commit cb362ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6493,6 +6493,8 @@ int srt::CUDT::sndDropTooLate()
if (dpkts <= 0)
return 0;

m_iFlowWindowSize = m_iFlowWindowSize + dpkts;

// If some packets were dropped update stats, socket state, loss list and the parent group if any.
enterCS(m_StatsLock);
m_stats.sndr.dropped.count(stats::BytesPackets((uint64_t) dbytes, (uint32_t) dpkts));
Expand Down

0 comments on commit cb362ee

Please sign in to comment.