mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
fix for last decrease sequence number
This commit is contained in:
parent
93a00c3d5d
commit
cbcc6e3ef2
2 changed files with 7 additions and 1 deletions
|
@ -148,6 +148,7 @@ void DefaultCC::onLoss(SequenceNumber rangeStart, SequenceNumber rangeEnd) {
|
|||
// check if we should skip handling of this loss event
|
||||
// we do this if this congestion event represents only a single packet loss
|
||||
if (rangeStart == rangeEnd) {
|
||||
qDebug() << "Skipping a first loss event";
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -213,3 +214,8 @@ void DefaultCC::stopSlowStart() {
|
|||
_packetSendPeriod = _congestionWindowSize / (_rtt + synInterval());
|
||||
}
|
||||
}
|
||||
|
||||
void DefaultCC::setInitialSendSequenceNumber(udt::SequenceNumber seqNum) {
|
||||
_slowStartLastACK = seqNum;
|
||||
_lastDecreaseMaxSeq = seqNum - 1;
|
||||
}
|
||||
|
|
|
@ -107,7 +107,7 @@ public:
|
|||
virtual void onTimeout();
|
||||
|
||||
protected:
|
||||
virtual void setInitialSendSequenceNumber(SequenceNumber seqNum) { _slowStartLastACK = seqNum; }
|
||||
virtual void setInitialSendSequenceNumber(SequenceNumber seqNum);
|
||||
|
||||
private:
|
||||
void stopSlowStart(); // stops the slow start on loss or timeout
|
||||
|
|
Loading…
Reference in a new issue