From 9e521a7615db04745de679ae79ad65c3cb7637e3 Mon Sep 17 00:00:00 2001 From: Toby Date: Sun, 23 Oct 2022 15:32:20 -0700 Subject: [PATCH] chore: use just smoothed RTT in brutal CC --- pkg/congestion/brutal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/congestion/brutal.go b/pkg/congestion/brutal.go index 740cb99..5dec9ae 100644 --- a/pkg/congestion/brutal.go +++ b/pkg/congestion/brutal.go @@ -59,7 +59,7 @@ func (b *BrutalSender) CanSend(bytesInFlight congestion.ByteCount) bool { } func (b *BrutalSender) GetCongestionWindow() congestion.ByteCount { - rtt := maxDuration(b.rttStats.LatestRTT(), b.rttStats.SmoothedRTT()) + rtt := b.rttStats.SmoothedRTT() if rtt <= 0 { return 10240 }