use the actual maximum packet size in the Reno congestion controller

This commit is contained in:
Marten Seemann
2021-01-25 14:23:11 +08:00
parent 8895a79e30
commit dd8b21f264
7 changed files with 97 additions and 39 deletions

View File

@@ -38,6 +38,7 @@ type SentPacketHandler interface {
TimeUntilSend() time.Time
// HasPacingBudget says if the pacer allows sending of a (full size) packet at this moment.
HasPacingBudget() bool
SetMaxDatagramSize(count protocol.ByteCount)
// only to be called once the handshake is complete
QueueProbePacket(protocol.EncryptionLevel) bool /* was a packet queued */