implement parsing and writing of the max_ack_delay transport parameter

This commit is contained in:
Marten Seemann
2019-05-08 12:43:29 +09:00
parent c135b4f1e3
commit f847c5422d
3 changed files with 55 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ package protocol
import (
"fmt"
"time"
)
// A PacketNumber in QUIC
@@ -73,3 +74,9 @@ const DefaultAckDelayExponent = 3
// MaxAckDelayExponent is the maximum ack delay exponent
const MaxAckDelayExponent = 20
// DefaultMaxAckDelay is the default max_ack_delay
const DefaultMaxAckDelay = 25 * time.Millisecond
// MaxMaxAckDelay is the maximum max_ack_delay
const MaxMaxAckDelay = 1 << 14 * time.Millisecond