From 39cf56190fbbf34cd01d07c43c7cdce086532060 Mon Sep 17 00:00:00 2001 From: ianswett Date: Mon, 3 May 2021 13:34:31 -0400 Subject: [PATCH] Re-do of #4861 on updated filename(9002) Recovery become 9002, so I ported the change from #4861 over. --- rfc9002.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rfc9002.md b/rfc9002.md index 9119a73927..4516724a9c 100644 --- a/rfc9002.md +++ b/rfc9002.md @@ -445,7 +445,7 @@ ack_delay = decoded acknowledgment delay from ACK frame if (handshake confirmed): ack_delay = min(ack_delay, max_ack_delay) adjusted_rtt = latest_rtt -if (min_rtt + ack_delay < latest_rtt): +if (latest_rtt >= min_rtt + ack_delay): adjusted_rtt = latest_rtt - ack_delay smoothed_rtt = 7/8 * smoothed_rtt + 1/8 * adjusted_rtt rttvar_sample = abs(smoothed_rtt - adjusted_rtt) @@ -1460,7 +1460,7 @@ UpdateRtt(ack_delay): // Adjust for acknowledgment delay if plausible. adjusted_rtt = latest_rtt - if (latest_rtt > min_rtt + ack_delay): + if (latest_rtt >= min_rtt + ack_delay): adjusted_rtt = latest_rtt - ack_delay rttvar = 3/4 * rttvar + 1/4 * abs(smoothed_rtt - adjusted_rtt)