fix for last decrease sequence number

This commit is contained in:
Stephen Birarda 2016-03-18 14:30:06 -07:00
parent 93a00c3d5d
commit cbcc6e3ef2
2 changed files with 7 additions and 1 deletions

View file

@ -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;
}

View file

@ -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