Skip to content

Commit

Permalink
Martin's feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
afrind committed Jan 29, 2019
1 parent e9629e9 commit c7f153f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion draft-ietf-quic-qpack.md
Expand Up @@ -866,12 +866,15 @@ decoder's dynamic table:
ReqInsertCount = 0
else:
MaxValue = TotalNumberOfInserts + MaxEntries

# MaxWrapped is the largest possible value of
# ReqInsertCount that is 0 mod 2*MaxEntries
MaxWrapped = floor(MaxValue / FullRange) * FullRange
ReqInsertCount = MaxWrapped + EncodedInsertCount - 1

# If ReqInsertCount exceeds MaxValue, the Encoder's value
# must have wrapped one fewer time
if ReqInsertCount > MaxValue:
# The Encoder's value wrapped one fewer time
if ReqInsertCount < FullRange:
Error
ReqInsertCount -= FullRange
Expand Down

0 comments on commit c7f153f

Please sign in to comment.