Merge pull request #1333 from lucas-clemente/acks-for-delayed-packets

don't send an ACK when receiving a packet that wouldn't be acked
This commit is contained in:
Marten Seemann
2018-05-05 14:54:11 +09:00
committed by GitHub
2 changed files with 19 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ func (h *receivedPacketHandler) IgnoreBelow(p protocol.PacketNumber) {
// isMissing says if a packet was reported missing in the last ACK.
func (h *receivedPacketHandler) isMissing(p protocol.PacketNumber) bool {
if h.lastAck == nil {
if h.lastAck == nil || p < h.ignoreBelow {
return false
}
return p < h.lastAck.LargestAcked() && !h.lastAck.AcksPacket(p)