mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-06 13:47:35 +03:00
remove session.maybeSendPacket, restrict small frame detection to ACKs
ref #217
This commit is contained in:
parent
d9a3980efc
commit
44acb8ca82
5 changed files with 94 additions and 101 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue