use the actual maximum packet size in the pacer

This commit is contained in:
Marten Seemann
2021-01-25 15:03:17 +08:00
parent dd8b21f264
commit 91a314258d
4 changed files with 60 additions and 31 deletions

View File

@@ -21,6 +21,8 @@ const (
cubeScale = 40
cubeCongestionWindowScale = 410
cubeFactor protocol.ByteCount = 1 << cubeScale / cubeCongestionWindowScale / maxDatagramSize
// TODO: when re-enabling cubic, make sure to use the actual packet size here
maxDatagramSize = protocol.ByteCount(protocol.InitialPacketSizeIPv4)
)
const defaultNumConnections = 1