keep separate flow control windows for sending and receiving in ConnectionParametersManager

work towards #19, #20, #39
This commit is contained in:
Marten Seemann
2016-05-14 15:25:51 +07:00
parent ea22fa6346
commit 43621c9c25
5 changed files with 146 additions and 41 deletions

View File

@@ -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