Skip to content

Commit 65c26cd

Browse files
committed
Small tweak to brutal CC
1 parent c7c2e59 commit 65c26cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/congestion/brutal.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func NewBrutalSender(bps congestion.ByteCount) *BrutalSender {
2828
bps: bps,
2929
}
3030
bs.pacer = newPacer(func() congestion.ByteCount {
31-
return congestion.ByteCount(float64(bs.bps)/bs.getAckRate()) * 5 / 4
31+
return congestion.ByteCount(float64(bs.bps) / bs.getAckRate())
3232
})
3333
return bs
3434
}
@@ -54,7 +54,7 @@ func (b *BrutalSender) GetCongestionWindow() congestion.ByteCount {
5454
if rtt <= 0 {
5555
return 10240
5656
}
57-
return congestion.ByteCount(float64(b.bps) * rtt.Seconds() / b.getAckRate())
57+
return congestion.ByteCount(float64(b.bps) * rtt.Seconds() * 1.5 / b.getAckRate())
5858
}
5959

6060
func (b *BrutalSender) OnPacketSent(sentTime time.Time, bytesInFlight congestion.ByteCount,

0 commit comments

Comments
 (0)