microsoftarchive/http2-katana

Compression: incorrect headers size

squirrelfm opened this issue · 1 comments

Actual : name.Len + value.Len + sizeof(Int32)
Should be : name.Len + value.Len + 32
Because (03 compr spec):

The size of an entry is the sum of its name's length in bytes (as
defined in Section 4.1.2), of its value's length in bytes
(Section 4.1.3) and of 32 bytes. The 32 bytes are an accounting for
the entry structure overhead. For example, an entry structure using
two 64-bits pointers to reference the name and the value and the
entry, and two 64-bits integer for counting the number of references
to these name and value would use 32 bytes.

Fixed by f153d82