Merge pull request #2569 from lucas-clemente/drop-duplicate-packets

drop duplicate packets
This commit is contained in:
Marten Seemann
2020-05-29 16:39:46 +07:00
committed by GitHub
10 changed files with 170 additions and 4 deletions

View File

@@ -63,6 +63,7 @@ type sentPacketTracker interface {
// ReceivedPacketHandler handles ACKs needed to send for incoming packets
type ReceivedPacketHandler interface {
IsPotentiallyDuplicate(protocol.PacketNumber, protocol.EncryptionLevel) bool
ReceivedPacket(pn protocol.PacketNumber, encLevel protocol.EncryptionLevel, rcvTime time.Time, shouldInstigateAck bool) error
DropPackets(protocol.EncryptionLevel)