remove session.maybeSendPacket, restrict small frame detection to ACKs

ref #217
This commit is contained in:
Lucas Clemente 2016-07-26 10:10:22 +02:00
parent d9a3980efc
commit 44acb8ca82
5 changed files with 94 additions and 101 deletions

View file

@ -17,12 +17,8 @@ const InitialCongestionWindow PacketNumber = 32
// session queues for later until it sends a public reset.
const MaxUndecryptablePackets = 10
// SmallPacketPayloadSizeThreshold defines a threshold for small packets
// if the packet payload size (i.e. the packet without public header and private header) is below SmallPacketSizeThreshold, sending will be delayed by SmallPacketSendDelay
const SmallPacketPayloadSizeThreshold = MaxPacketSize / 2
// SmallPacketSendDelay is the time delay applied to small packets
const SmallPacketSendDelay = 500 * time.Microsecond
// AckSendDelay is the maximal time delay applied to packets containing only ACKs
const AckSendDelay = 5 * time.Millisecond
// ReceiveStreamFlowControlWindow is the stream-level flow control window for receiving data
// This is the value that Google servers are using