1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-09 10:00:57 +03:00

Fix last packet sent time in loss alarm calculation

Summary:
In a recent diff this was mistakenly changed to be the earliest sent
time, which makes the loss alarm duration much shorter, then we end up firing
them a lot.

Reviewed By: mjoras

Differential Revision: D19826034

fbshipit-source-id: e190d30655533fdb220e92eddc5754fb9abd007b
This commit is contained in:
Yang Chi
2020-02-10 18:06:42 -08:00
committed by Facebook Github Bot
parent 02d90faa39
commit 9a1bc51681
4 changed files with 5 additions and 10 deletions

View File

@@ -189,7 +189,7 @@ PacketNum QuicLossFunctionsTest::sendPacket(
conn.outstandingHandshakePacketsCount++;
conn.lossState.lastHandshakePacketSentTime = time;
}
conn.lossState.lastRetransmittablePacketSentTimes[packetNumberSpace] = time;
conn.lossState.lastRetransmittablePacketSentTime = time;
if (conn.congestionController) {
conn.congestionController->onPacketSent(outstandingPacket);
}