chore: use just smoothed RTT in brutal CC

This commit is contained in:
Toby 2022-10-23 15:32:20 -07:00
parent cf970f09e4
commit 9e521a7615

View File

@ -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
}