Skip to content

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 2 commits into from
Apr 8, 2025

Conversation

EvgeniiMekhanik
Copy link
Contributor

No description provided.

@EvgeniiMekhanik EvgeniiMekhanik marked this pull request as draft March 18, 2025 19:59
@EvgeniiMekhanik EvgeniiMekhanik force-pushed the MekhanikEvgenii/1411-4 branch 3 times, most recently from 5b32e0f to ff1149a Compare March 19, 2025 00:39
@EvgeniiMekhanik EvgeniiMekhanik changed the title TMP Call tfw_http_hdr_split only during hpack encoding Mar 19, 2025
@EvgeniiMekhanik EvgeniiMekhanik force-pushed the MekhanikEvgenii/1411-4 branch from ff1149a to 8115185 Compare March 19, 2025 00:41
@EvgeniiMekhanik EvgeniiMekhanik marked this pull request as ready for review March 19, 2025 00:41
@EvgeniiMekhanik EvgeniiMekhanik marked this pull request as draft March 19, 2025 00:43
@EvgeniiMekhanik EvgeniiMekhanik force-pushed the MekhanikEvgenii/1411-4 branch from 8115185 to db78e5c Compare March 19, 2025 01:25
@EvgeniiMekhanik EvgeniiMekhanik marked this pull request as ready for review March 19, 2025 01:26
@EvgeniiMekhanik EvgeniiMekhanik force-pushed the MekhanikEvgenii/1411-4 branch from db78e5c to 4629b3b Compare March 19, 2025 01:44
Copy link
Contributor

@const-t const-t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@krizhanovsky krizhanovsky left a 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

@EvgeniiMekhanik EvgeniiMekhanik force-pushed the MekhanikEvgenii/1411-4 branch from 9498803 to b36a343 Compare April 7, 2025 14:57
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.
@EvgeniiMekhanik EvgeniiMekhanik force-pushed the MekhanikEvgenii/1411-4 branch from b36a343 to 42e3c11 Compare April 7, 2025 20:24
@krizhanovsky krizhanovsky merged commit d043032 into master Apr 8, 2025
1 check failed
@krizhanovsky krizhanovsky deleted the MekhanikEvgenii/1411-4 branch April 8, 2025 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants