From 49a4920aae4732eaf76a8d46157dcaeef8240afa Mon Sep 17 00:00:00 2001 From: Lucas Clemente Date: Tue, 3 May 2016 15:14:48 +0200 Subject: [PATCH] add some protocol constants for congestion --- protocol/protocol.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/protocol/protocol.go b/protocol/protocol.go index 9128e3ed0..729a37da1 100644 --- a/protocol/protocol.go +++ b/protocol/protocol.go @@ -23,7 +23,12 @@ const MaxFrameSize = MaxPacketSize - (1 + 8 + 6) /*public header*/ - 1 /*private const DefaultTCPMSS = 1460 // InitialCongestionWindow is the initial congestion window in QUIC packets -const InitialCongestionWindow = 32 +const InitialCongestionWindow PacketNumber = 32 // MaxCongestionWindow is the maximum size of the CWND, in packets. +// TODO: Unused? const MaxCongestionWindow PacketNumber = 200 + +// DefaultMaxCongestionWindow is the default for the max congestion window +// Taken from Chrome +const DefaultMaxCongestionWindow PacketNumber = 107