forked from quic-go/quic-go
@@ -1,5 +1,7 @@
|
||||
package protocol
|
||||
|
||||
import "time"
|
||||
|
||||
// A PacketNumber in QUIC
|
||||
type PacketNumber uint64
|
||||
|
||||
@@ -46,3 +48,6 @@ const InitialStreamFlowControlWindow ByteCount = (1 << 14) // 16 kB
|
||||
|
||||
// InitialConnectionFlowControlWindow is the initial connection-level flow control window for sending
|
||||
const InitialConnectionFlowControlWindow ByteCount = (1 << 14) // 16 kB
|
||||
|
||||
// InitialIdleConnectionStateLifetime is the initial idle connection state lifetime
|
||||
const InitialIdleConnectionStateLifetime = 30 * time.Second
|
||||
|
||||
@@ -31,3 +31,7 @@ const ReceiveStreamFlowControlWindow ByteCount = (1 << 20) // 1 MB
|
||||
// ReceiveConnectionFlowControlWindow is the stream-level flow control window for receiving data
|
||||
// TODO: set a reasonable value here
|
||||
const ReceiveConnectionFlowControlWindow ByteCount = (1 << 20) // 1 MB
|
||||
|
||||
// MaxIdleConnectionStateLifetime is the maximum value we accept for the idle connection state lifetime
|
||||
// TODO: set a reasonable value here
|
||||
const MaxIdleConnectionStateLifetime = 60 * time.Second
|
||||
|
||||
Reference in New Issue
Block a user