forked from quic-go/quic-go
fix number of ACK blocks for gaps of 254 packets in QUIC 34 ACKs
ref #182
This commit is contained in:
@@ -312,7 +312,7 @@ func (f *AckFrameNew) numWrittenNackRanges() uint64 {
|
||||
|
||||
lastAckRange := f.AckRanges[i-1]
|
||||
gap := lastAckRange.FirstPacketNumber - ackRange.LastPacketNumber
|
||||
numRanges += 1 + uint64(gap)/0xFF
|
||||
numRanges += 1 + uint64(gap)/(0xFF+1)
|
||||
if uint64(gap)%(0xFF+1) == 0 {
|
||||
numRanges--
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user