-
Notifications
You must be signed in to change notification settings - Fork 106
Call tfw_http_hdr_split only during hpack encoding #2367
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
Merged
Merged
Conversation
This file contains hidden or 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
5b32e0f
to
ff1149a
Compare
ff1149a
to
8115185
Compare
8115185
to
db78e5c
Compare
db78e5c
to
4629b3b
Compare
const-t
requested changes
Mar 21, 2025
cd90a87
to
9498803
Compare
const-t
approved these changes
Apr 4, 2025
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.
LGTM
krizhanovsky
approved these changes
Apr 5, 2025
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.
LGTM. But please edit #1411 and explicitly link the PR to the bullet, which is fixed now
9498803
to
b36a343
Compare
Previously we call `tfw_http_hdr_split` twice - in `tfw_hpack_encoder_index` and in `tfw_hpack_hdr_add`, this patch fixes this behaviour, we split header at the beginning of `__tfw_hpack_encode` if it is necessary and use header name and header value later.
- Remove garbage - Change macros to `static inline` function. - We should not change return code of `tfw_hpack_encoder_index` beacuse if we can't add new header to the table we just not set HPACK_IDX_FLAG_ADD to result. But we don't need to check that return code of `tfw_hpack_encoder_index` is greater or equal to zero because it is always true.
b36a343
to
42e3c11
Compare
17 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.