{{ message }}
Repository navigation
http,http2: speed up header validation and write coalescing #65332
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
Open
anonrig
wants to merge
11
commits into
nodejs:main
Choose a base branch
from
anonrig:cursor/http-http2-perf-f24c
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
fbb6c1c
http,http2: speed up header validation and write coalescing
anonrig 62327c4
http,http2: coalesce chunked end() and cache status lines
anonrig 1a2c1ed
http: write coalesced chunked headers as latin1
anonrig 69766d5
http: keep regex header-value checks
anonrig 1ec86ff
http: keep incoming headers in C++ until accessed
anonrig 5554cbc
http: keep incoming headers packed until accessed
anonrig 4ca2f93
http: format and lint node_http_parser.cc
anonrig 1663db2
http: address review feedback for packed headers
cursoragent df53247
http: fix lint in review-feedback follow-up
cursoragent 855b729
test: add --expose-internals flags for packed header tests
cursoragent 37317f2
test: cover packed-header fallbacks after materialization
cursoragent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
http: address review feedback for packed headers
Write packed incoming-header integers as little-endian so s390x and AIX agree with JS. Export the layout constants from C++ instead of duplicating them. Keep IncomingMessage.rawHeaders as an own property to avoid a semver-major prototype change. Queue end() callbacks before the combined write so sync socket writes still succeed. Drop the HTTP/2 toLowerCase micro-optimizations and the unused unpackHeaderList export. Co-authored-by: Yagiz Nizipli <anonrig@users.noreply.github.com>
- Loading branch information
commit 1663db2d5d799942bec667a3d0113312b4d6cb36
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
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.
You can’t perform that action at this time.

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.
It would be better to export these to the js side to avoid having to define two different sets
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.
Exported from C++ on
HTTPParser:kNativeHeadersMagic,kNativeHeaderFlag*,kNativeHeadersCountOffset,kNativeHeadersFlagsOffset, andkNativeHeadersPrefix. JS reads those instead of keeping a second copy.