forked from quic-go/quic-go
keep separate flow control windows for sending and receiving in ConnectionParametersManager
work towards #19, #20, #39
This commit is contained in:
@@ -41,4 +41,8 @@ const MaxFrameAndPublicHeaderSize = MaxPacketSize - 1 /*private header*/ - 12 /*
|
||||
// Used in QUIC for congestion window computations in bytes.
|
||||
const DefaultTCPMSS ByteCount = 1460
|
||||
|
||||
// InitialStreamFlowControlWindow is the initial stream-level flow control window for sending
|
||||
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
|
||||
|
||||
@@ -23,3 +23,11 @@ const SmallPacketPayloadSizeThreshold = MaxPacketSize / 2
|
||||
|
||||
// SmallPacketSendDelay is the time delay applied to small packets
|
||||
const SmallPacketSendDelay = 500 * time.Microsecond
|
||||
|
||||
// ReceiveStreamFlowControlWindow is the stream-level flow control window for receiving data
|
||||
// TODO: set a reasonable value here
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user