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

Make time reordering threshold configurable via Quic TransportSettings

Summary: as title

Reviewed By: bschlinker

Differential Revision: D19333765

fbshipit-source-id: 7cf6110d23edc91d93c3d366626ff3282c74f089
This commit is contained in:
Yang Chi
2020-01-10 10:07:43 -08:00
committed by Facebook Github Bot
parent 74f98d4604
commit 0e4db05b37
5 changed files with 23 additions and 10 deletions

View File

@@ -788,7 +788,8 @@ TEST_F(QuicLossFunctionsTest, LossTimePreemptsCryptoTimer) {
auto conn = createConn();
conn->lossState.srtt = 100ms;
conn->lossState.lrtt = 100ms;
auto expectedDelayUntilLost = 500ms / 4;
auto expectedDelayUntilLost =
500ms / conn->transportSettings.timeReorderingThreshDivisor;
auto sendTime = Clock::now();
// Send two:
sendPacket(*conn, sendTime, folly::none, PacketType::Handshake);