Skip to content

Commit

Permalink
Added a comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko authored Aug 8, 2023
1 parent b19e536 commit e58aaa4
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 @@ -7926,6 +7926,8 @@ int srt::CUDT::sendCtrlAck(CPacket& ctrlpkt, int size)
// The TSBPD thread may change the first lost sequence record (TLPKTDROP).
// To avoid it the m_RcvBufferLock has to be acquired.
UniqueLock bufflock(m_RcvBufferLock);
// The full ACK should be sent to indicate there is now available space in the RCV buffer
// since the last full ACK. It should unblock the sender to proceed further.
const bool bNeedFullAck = (m_bBufferWasFull && getAvailRcvBufferSizeNoLock() > 0);
int32_t ack; // First unacknowledged packet sequence number (acknowledge up to ack).
if (!getFirstNoncontSequence((ack), (reason)))
Expand Down

0 comments on commit e58aaa4

Please sign in to comment.