From 86cec075685e3d21f8ec86d45044f9b5dd99ca4a Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Sat, 9 Jan 2021 13:35:17 +0800 Subject: [PATCH] remove the Max0RTTQueueLen and the MaxUndecrytablePackets by 1 Using values below a power of 2 might improve memory allocation. --- internal/protocol/params.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/protocol/params.go b/internal/protocol/params.go index f5b56eaa0..4f52709f7 100644 --- a/internal/protocol/params.go +++ b/internal/protocol/params.go @@ -15,7 +15,7 @@ const MaxPacketSizeIPv6 = 1232 const MaxCongestionWindowPackets = 10000 // MaxUndecryptablePackets limits the number of undecryptable packets that are queued in the session. -const MaxUndecryptablePackets = 33 +const MaxUndecryptablePackets = 32 // ConnectionFlowControlMultiplier determines how much larger the connection flow control windows needs to be relative to any stream's flow control window // This is the value that Chromium is using @@ -192,4 +192,4 @@ const Max0RTTQueues = 32 // When a new session is created, all buffered packets are passed to the session immediately. // To avoid blocking, this value has to be smaller than MaxSessionUnprocessedPackets. // To avoid packets being dropped as undecryptable by the session, this value has to be smaller than MaxUndecryptablePackets. -const Max0RTTQueueLen = 32 +const Max0RTTQueueLen = 31