implement packet pacing

This commit is contained in:
Marten Seemann
2017-12-31 14:33:29 +07:00
parent c3cc35363b
commit 5ef89733ae
10 changed files with 153 additions and 50 deletions

View File

@@ -15,6 +15,7 @@ type SentPacketHandler interface {
SetHandshakeComplete()
SendingAllowed() bool
TimeUntilSend() time.Time
GetStopWaitingFrame(force bool) *wire.StopWaitingFrame
GetLowestPacketNotConfirmedAcked() protocol.PacketNumber
ShouldSendRetransmittablePacket() bool