Skip to content

Commit

Permalink
[core] fix CRcvBufferNew::m_iStartSeqNo was not sync in group
Browse files Browse the repository at this point in the history
  • Loading branch information
gou4shi1 authored and maxsharabayko committed Apr 21, 2022
1 parent 48d1364 commit c76f43d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions srtcore/buffer_rcv.h
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ class CRcvBufferNew

void setPeerRexmitFlag(bool flag) { m_bPeerRexmitFlag = flag; }

void applyGroupISN(int rcv_isn) { m_iStartSeqNo = rcv_isn; }

void applyGroupTime(const time_point& timebase, bool wrp, uint32_t delay, const duration& udrift);

void applyGroupDrift(const time_point& timebase, bool wrp, const duration& udrift);
Expand Down
5 changes: 5 additions & 0 deletions srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3333,6 +3333,11 @@ void srt::CUDT::synchronizeWithGroup(CUDTGroup* gp)
<< " (shift by " << CSeqNo::seqcmp(snd_isn, m_iSndLastAck) << ")");
setInitialRcvSeq(rcv_isn);
setInitialSndSeq(snd_isn);
#if ENABLE_NEW_RCVBUFFER
enterCS(m_RecvLock);
m_pRcvBuffer->applyGroupISN(rcv_isn);
leaveCS(m_RecvLock);
#endif
}
else
{
Expand Down

0 comments on commit c76f43d

Please sign in to comment.