accept multiple ACKs sent in the same packet

This commit is contained in:
Marten Seemann 2018-12-21 21:10:23 +06:30
parent b166757fd9
commit a4128ed469
2 changed files with 3 additions and 3 deletions

View file

@ -185,7 +185,7 @@ func (h *sentPacketHandler) ReceivedAck(ackFrame *wire.AckFrame, withPacketNumbe
}
// duplicate or out of order ACK
if withPacketNumber != 0 && withPacketNumber <= h.largestReceivedPacketWithAck {
if withPacketNumber != 0 && withPacketNumber < h.largestReceivedPacketWithAck {
h.logger.Debugf("Ignoring ACK frame (duplicate or out of order).")
return nil
}