We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7c2e59 commit 65c26cdCopy full SHA for 65c26cd
pkg/congestion/brutal.go
@@ -28,7 +28,7 @@ func NewBrutalSender(bps congestion.ByteCount) *BrutalSender {
28
bps: bps,
29
}
30
bs.pacer = newPacer(func() congestion.ByteCount {
31
- return congestion.ByteCount(float64(bs.bps)/bs.getAckRate()) * 5 / 4
+ return congestion.ByteCount(float64(bs.bps) / bs.getAckRate())
32
})
33
return bs
34
@@ -54,7 +54,7 @@ func (b *BrutalSender) GetCongestionWindow() congestion.ByteCount {
54
if rtt <= 0 {
55
return 10240
56
57
- return congestion.ByteCount(float64(b.bps) * rtt.Seconds() / b.getAckRate())
+ return congestion.ByteCount(float64(b.bps) * rtt.Seconds() * 1.5 / b.getAckRate())
58
59
60
func (b *BrutalSender) OnPacketSent(sentTime time.Time, bytesInFlight congestion.ByteCount,
0 commit comments