rename MaxPacketSizeIPv{4,6} to InitialPacketSizeIPv{4,6}

This commit is contained in:
Marten Seemann 2021-01-23 11:44:13 +08:00
parent 2c45f2b11d
commit eea0b1eacd
5 changed files with 12 additions and 12 deletions

View file

@ -11,7 +11,7 @@ import (
const (
// maxDatagramSize is the default maximum packet size used in the Linux TCP implementation.
// Used in QUIC for congestion window computations in bytes.
maxDatagramSize = protocol.ByteCount(protocol.MaxPacketSizeIPv4)
maxDatagramSize = protocol.ByteCount(protocol.InitialPacketSizeIPv4)
maxBurstBytes = 3 * maxDatagramSize
renoBeta = 0.7 // Reno backoff factor.
maxCongestionWindow = protocol.MaxCongestionWindowPackets * maxDatagramSize