Skip to content

Commit daf91f3

Browse files
gou4shi1maxsharabayko
authored andcommitted
[core] Replaced reorder_prevent_lossreport with initial_loss_ttl.
1 parent ae18186 commit daf91f3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

srtcore/core.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10052,7 +10052,6 @@ int srt::CUDT::processData(CUnit* in_unit)
1005210052
loss_seqs_t srt_loss_seqs;
1005310053
vector<CUnit *> incoming;
1005410054
bool was_sent_in_order = true;
10055-
bool reorder_prevent_lossreport = false;
1005610055

1005710056
// If the peer doesn't understand REXMIT flag, send rexmit request
1005810057
// always immediately.
@@ -10367,7 +10366,6 @@ int srt::CUDT::processData(CUnit* in_unit)
1036710366
HLOGC(qrlog.Debug,
1036810367
log << CONID() << "FreshLoss: added sequences: " << Printable(srt_loss_seqs)
1036910368
<< " tolerance: " << initial_loss_ttl);
10370-
reorder_prevent_lossreport = true;
1037110369
}
1037210370
}
1037310371

@@ -10416,7 +10414,7 @@ int srt::CUDT::processData(CUnit* in_unit)
1041610414
if (!srt_loss_seqs.empty())
1041710415
{
1041810416
const bool report_recorded_loss = !m_PacketFilter || m_PktFilterRexmitLevel == SRT_ARQ_ALWAYS;
10419-
if (!reorder_prevent_lossreport && report_recorded_loss)
10417+
if (!initial_loss_ttl && report_recorded_loss)
1042010418
{
1042110419
HLOGC(qrlog.Debug, log << CONID() << "WILL REPORT LOSSES (SRT): " << Printable(srt_loss_seqs));
1042210420
sendLossReport(srt_loss_seqs);

0 commit comments

Comments
 (0)