Skip to content

Commit

Permalink
Fix another edge case
Browse files Browse the repository at this point in the history
When CurrentWrapped + MaxEntries == LargestReference, the encoder is a full table ahead of the decoder, and they have wrapped an equal number of times.
  • Loading branch information
afrind committed Sep 28, 2018
1 parent 35ecdeb commit 0b39ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion draft-ietf-quic-qpack.md
Expand Up @@ -730,7 +730,7 @@ The decoder reconstructs the Largest Reference using the following algorithm:
if CurrentWrapped >= LargestReference + MaxEntries:
# Largest Reference wrapped around 1 extra time
LargestReference += 2*MaxEntries
else if CurrentWrapped + MaxEntries <= LargestReference
else if CurrentWrapped + MaxEntries < LargestReference
# Decoder wrapped around 1 extra time
CurrentWrapped += 2*MaxEntries

Expand Down

0 comments on commit 0b39ceb

Please sign in to comment.