implement the crypto stream for post-handshake crypto messages

This commit is contained in:
Marten Seemann
2019-02-04 19:02:49 +08:00
parent 89c7f628ca
commit e7ed5e3c92
3 changed files with 76 additions and 3 deletions

View File

@@ -103,6 +103,10 @@ const RetiredConnectionIDDeleteTimeout = 5 * time.Second
// 2. it reduces the head-of-line blocking, when a packet is lost
const MinStreamFrameSize ByteCount = 128
// MaxPostHandshakeCryptoFrameSize is the maximum size of CRYPTO frames
// we send after the handshake completes.
const MaxPostHandshakeCryptoFrameSize ByteCount = 1000
// MaxAckFrameSize is the maximum size for an ACK frame that we write
// Due to the varint encoding, ACK frames can grow (almost) indefinitely large.
// The MaxAckFrameSize should be large enough to encode many ACK range,