pad Initial packets to the required minimum size (1200 bytes)

This commit is contained in:
Marten Seemann
2017-12-08 11:23:12 +07:00
parent 62a664f5f4
commit 6019634286
3 changed files with 35 additions and 3 deletions

View File

@@ -77,6 +77,9 @@ const DefaultTCPMSS ByteCount = 1460
// ClientHelloMinimumSize is the minimum size the server expects an inchoate CHLO to have.
const ClientHelloMinimumSize = 1024
// MinInitialPacketSize is the minimum size an Initial packet (in IETF QUIC) is requried to have.
const MinInitialPacketSize = 1200
// MaxClientHellos is the maximum number of times we'll send a client hello
// The value 3 accounts for:
// * one failure due to an incorrect or missing source-address token