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

@@ -15,6 +15,7 @@ type SentPacketHandler interface {
SendingAllowed() bool
GetStopWaitingFrame(force bool) *frames.StopWaitingFrame
ShouldSendRetransmittablePacket() bool
DequeuePacketForRetransmission() (packet *Packet)
GetLeastUnacked() protocol.PacketNumber