Skip to content

Commit

Permalink
Avoid entering ProbeRTT when the connection is app limited
Browse files Browse the repository at this point in the history
Summary: When restarting from idle, the probeRTT min value can be updated without having to enter ProbeRTT.

Reviewed By: mjoras

Differential Revision: D49548502

fbshipit-source-id: 8471df3e15eb788b087764f2630537c71e164914
  • Loading branch information
jbeshay authored and facebook-github-bot committed Sep 26, 2023
1 parent 837d229 commit 10161ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quic/congestion_control/Bbr2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,10 @@ void Bbr2CongestionController::probeInflightHiUpward(uint64_t ackedBytes) {
}

void Bbr2CongestionController::updateMinRtt() {
if (idleRestart_) {
probeRttMinTimestamp_ = Clock::now();
probeRttMinValue_ = kDefaultMinRtt;
}
probeRttExpired_ = probeRttMinTimestamp_
? Clock::now() > (probeRttMinTimestamp_.value() + kProbeRTTInterval)
: true;
Expand Down

0 comments on commit 10161ff

Please sign in to comment.