pack smaller packets as long as the encryption is not forward secure

This commit is contained in:
Marten Seemann
2017-02-25 14:57:59 +07:00
parent d4b2b66273
commit 9e147714ac
7 changed files with 44 additions and 1 deletions

View File

@@ -2,6 +2,10 @@ package protocol
import "time"
// NonForwardSecurePacketSizeReduction is the number of bytes a non forward-secure packet has to be smaller than a forward-secure packet
// This makes sure that those packets can always be retransmitted without splitting the contained StreamFrames
const NonForwardSecurePacketSizeReduction = 50
// DefaultMaxCongestionWindow is the default for the max congestion window
const DefaultMaxCongestionWindow = 1000