forked from quic-go/quic-go
disable the two-connection mode of the congestion controller
This commit is contained in:
@@ -21,7 +21,7 @@ const cubeScale = 40
|
||||
const cubeCongestionWindowScale = 410
|
||||
const cubeFactor protocol.ByteCount = 1 << cubeScale / cubeCongestionWindowScale / protocol.DefaultTCPMSS
|
||||
|
||||
const defaultNumConnections = 2
|
||||
const defaultNumConnections = 1
|
||||
|
||||
// Default Cubic backoff factor
|
||||
const beta float32 = 0.7
|
||||
|
||||
@@ -24,6 +24,7 @@ var _ = Describe("Cubic", func() {
|
||||
BeforeEach(func() {
|
||||
clock = mockClock{}
|
||||
cubic = NewCubic(&clock)
|
||||
cubic.SetNumConnections(int(numConnections))
|
||||
})
|
||||
|
||||
renoCwnd := func(currentCwnd protocol.ByteCount) protocol.ByteCount {
|
||||
|
||||
Reference in New Issue
Block a user