Merge pull request #1319 from lucas-clemente/fix-1307

use different source and destination connection IDs
This commit is contained in:
Marten Seemann
2018-04-23 17:29:45 +09:00
committed by GitHub
12 changed files with 482 additions and 313 deletions

View File

@@ -143,3 +143,9 @@ const MaxAckFrameSize ByteCount = 1000
// If the packet packing frequency is higher, multiple packets might be sent at once.
// Example: For a packet pacing delay of 20 microseconds, we would send 5 packets at once, wait for 100 microseconds, and so forth.
const MinPacingDelay time.Duration = 100 * time.Microsecond
// ConnectionIDLen is the length of the source Connection ID used on IETF QUIC packets.
// The Short Header contains the connection ID, but not the length,
// so we need to know this value in advance (or encode it into the connection ID).
// TODO: make this configurable
const ConnectionIDLen = 8