force sending of a retransmittable packet every 20 packets

This commit is contained in:
Marten Seemann 2017-08-07 15:50:49 +07:00
parent 843764aea3
commit 79bb3a9bd3
6 changed files with 63 additions and 4 deletions

View file

@ -99,6 +99,9 @@ const MaxTrackedReceivedAckRanges = DefaultMaxCongestionWindow
// MaxPacketsReceivedBeforeAckSend is the number of packets that can be received before an ACK frame is sent
const MaxPacketsReceivedBeforeAckSend = 20
// MaxNonRetransmittablePackets is the maximum number of non-retransmittable packets that we send in a row
const MaxNonRetransmittablePackets = 19
// RetransmittablePacketsBeforeAck is the number of retransmittable that an ACK is sent for
const RetransmittablePacketsBeforeAck = 2