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 cubeCongestionWindowScale = 410
|
||||||
const cubeFactor protocol.ByteCount = 1 << cubeScale / cubeCongestionWindowScale / protocol.DefaultTCPMSS
|
const cubeFactor protocol.ByteCount = 1 << cubeScale / cubeCongestionWindowScale / protocol.DefaultTCPMSS
|
||||||
|
|
||||||
const defaultNumConnections = 2
|
const defaultNumConnections = 1
|
||||||
|
|
||||||
// Default Cubic backoff factor
|
// Default Cubic backoff factor
|
||||||
const beta float32 = 0.7
|
const beta float32 = 0.7
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ var _ = Describe("Cubic", func() {
|
|||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
clock = mockClock{}
|
clock = mockClock{}
|
||||||
cubic = NewCubic(&clock)
|
cubic = NewCubic(&clock)
|
||||||
|
cubic.SetNumConnections(int(numConnections))
|
||||||
})
|
})
|
||||||
|
|
||||||
renoCwnd := func(currentCwnd protocol.ByteCount) protocol.ByteCount {
|
renoCwnd := func(currentCwnd protocol.ByteCount) protocol.ByteCount {
|
||||||
|
|||||||
Reference in New Issue
Block a user