Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http1 encode trailers in chunk encoding #8667
http1 encode trailers in chunk encoding #8667
Changes from 37 commits
08ae97c
5de8533
9c550cb
f0d53cd
f9c9f48
e002b4b
10a9089
de29acb
96913f9
77ec2ac
8b03163
6955a1a
92421a8
e7cb695
592e315
9e2a48a
cd56fd8
e9c27e4
c70e7b0
557e027
614ff9b
4205198
b63375d
92d4efc
dae9233
07a0e79
e124271
962afd2
fce0ddb
9f990a5
de672b8
b41c492
ee426ea
1296eff
ce552b8
1b87726
fd5c7de
4ed8b97
2f18c1c
dfbd03e
76a0a6d
3041acb
e59101d
c784ce4
f28af8f
86fed8a
cee19aa
32e0c7a
4388cf4
8b13bdf
4aadf64
14ac61b
41135aa
678222d
dd6844a
b90f535
fbdf83d
9e8be74
c179840
915fb06
ce5cb82
b406f71
5447d69
be14d7e
0c717f8
a347b6f
fb321d8
d1c66e8
15b6715
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you reformat all the bools in this class as a bit field? It would be nice to not waste the extra RAM for each connection.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to be sure, you are talking about
enable_trailers_
protected:
handling_upgrade_
private:
connection_header_sanitization_
strict_header_validation_
reset_stream_called_
Which would reduce it from 5 bytes into one 4 byte bitfield. Am I missing anything else? Is it worth it to put all those to save one byte?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mattklein123 ^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The number of bytes the existing fields take is dependent on ordering and alignment. It may very well be significantly larger than 5 bytes. The main issue here is we are trying to be very stringent on memory usage for things like connections. IMO this is a trivial change so I see no reason not to do it as part of this change while you wait for reviews from @alyssawilk and @PiotrSikora
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change is being done in this PR #9124
I'll make sure to align the enable_trailers once that PR is merged in.