From 65c26cdfe48dba27f47d40d7f99d6163b813f9a2 Mon Sep 17 00:00:00 2001 From: Toby Date: Wed, 31 Mar 2021 16:01:59 -0700 Subject: [PATCH] Small tweak to brutal CC --- pkg/congestion/brutal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/congestion/brutal.go b/pkg/congestion/brutal.go index b5a00d9..24593f1 100644 --- a/pkg/congestion/brutal.go +++ b/pkg/congestion/brutal.go @@ -28,7 +28,7 @@ func NewBrutalSender(bps congestion.ByteCount) *BrutalSender { bps: bps, } bs.pacer = newPacer(func() congestion.ByteCount { - return congestion.ByteCount(float64(bs.bps)/bs.getAckRate()) * 5 / 4 + return congestion.ByteCount(float64(bs.bps) / bs.getAckRate()) }) return bs } @@ -54,7 +54,7 @@ func (b *BrutalSender) GetCongestionWindow() congestion.ByteCount { if rtt <= 0 { return 10240 } - return congestion.ByteCount(float64(b.bps) * rtt.Seconds() / b.getAckRate()) + return congestion.ByteCount(float64(b.bps) * rtt.Seconds() * 1.5 / b.getAckRate()) } func (b *BrutalSender) OnPacketSent(sentTime time.Time, bytesInFlight congestion.ByteCount,