-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
[v8.x] http: fix error check in Execute()
#25938
[v8.x] http: fix error check in Execute()
#25938
Conversation
Execute()
Execute()
eac405d
to
4ceb467
Compare
Can this and the v6.x backport be merged yet or do we need another sign off on each first? |
@mscdex the LTS @nodejs/releasers normally merge these when preparing a new release for the specific release line. |
@BridgeAR If that's the case, why do we have version-specific staging branches? I thought the process still was: version-specific PRs are merged into the staging branch after sufficient approval (like a typical PR), then releasers pull new commits from the staging branch into the release branch when making a new release? |
ping @nodejs/http |
@mscdex we do not distinguish semver-minor and patch releases on those branches (at least for now). If a semver-minor PR would be pulled in early, it would have to be pulled out again when releasing a patch release. That is off course not the case here but it is AFAIK the way we dealt with these things so far. I am not part of the @nodejs/lts team so they might have further insight. I am fine to land the PR. |
The current process is https://github.com/nodejs/node/blob/master/COLLABORATOR_GUIDE.md#how-are-lts-branches-managed
This is up for discussion in nodejs/Release#388. |
This is an important fix especially on LTS release lines. |
@nodejs/lts @MylesBorins |
`http_parser_execute(..., nullptr, 0)` returns either `0` or `1`. The expectation is that no error must be returned if it is `0`, and if it is `1` - a `Error` object must be returned back to user. The introduction of `llhttp` and the refactor that happened during it accidentally removed the error-returning code. This commit reverts it back to its original state. Backport-PR-URL: #25938 Fix: #24585 PR-URL: #24738 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Landed on v8.x-staging |
Refs: #24738
Fixes: #25858
CI: https://ci.nodejs.org/job/node-test-pull-request/20577/
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes