forked from netty/netty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 32 bytes overhead per header entry when calculating headers lengt…
…h in HPackDecoder Motivation: According to the HTTP/2 Spec: SETTINGS_MAX_HEADER_LIST_SIZE (0x6): This advisory setting informs a peer of the maximum size of header list that the sender is prepared to accept, in octets. The value is based on the uncompressed size of header fields, including the length of the name and value in octets plus an overhead of 32 octets for each header field. We were accounting for the 32 bytes when encoding in HpackEncoder, but not when decoding in HPackDecoder. Modifications: - Add 32 bytes to the header list length for each entry when decoding with HPackDecoder. Result: - We account for the 32 bytes overhead by header entry in HPackDecoder
- Loading branch information
1 parent
c9668ce
commit 6b033c5
Showing
2 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters