commit | f5f8d70ec18778edba1f871e253b027121008a26 | [log] [tgz] |
---|---|---|
author | bnc <bnc@google.com> | Fri Mar 19 10:50:35 2021 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Mar 19 10:51:09 2021 -0700 |
tree | c92d10a6957c32934dae3ae421a9b5160c551173 | |
parent | 98fcb6677465035983215d7ae1ad26f5d15216f6 [diff] |
Make HpackEntry::insertion_index_ start from 0 for dynamic entries. Adding a constant offset of 61 does not add any value. The calculation of the HPACK index (which is 61 for the most recently added entry and growing for older entries) involves a subtraction in GetByName() and GetByNameAndValue(), and this offset cancels between total_insertion_ and entry->InsertionIndex(), that's why that formula does not change with this CL. Also add a couple of CHECKs involving InsertionIndex() to validate the formula that will be used in the next CL which removes InsertionIndex(). PiperOrigin-RevId: 363924862 Change-Id: Ieea5a0a906229427f4af2c14f57074cf1e299b63
QUICHE (QUIC, Http/2, Etc) is Google‘s implementation of QUIC and related protocols. It powers Chromium as well as Google’s QUIC servers and some other projects. QUICHE is only supported on little-endian platforms.
Code can be viewed in CodeSearch in Quiche and is imported into Chromium.