FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

http: correctly calculate strict content length by ronag · Pull Request #46601 · nodejs/node · GitHub

/ node Public

http: correctly calculate strict content length - #46601

Merged
nodejs-github-bot merged 11 commits into
nodejs:mainfrom
nxtedition:http-byte-len
Feb 23, 2023
Merged

http: correctly calculate strict content length#46601
nodejs-github-bot merged 11 commits into
nodejs:mainfrom
nxtedition:http-byte-len

Conversation

ronag commented Feb 10, 2023

Copy link
Copy Markdown
Member

Previously Buffer.byteLength (which is slow) was run regardless of whether or not the len was required.

ronag added the http Issues or PRs related to the http subsystem. label Feb 10, 2023

nodejs-github-bot commented Feb 10, 2023
edited by ronag
Loading

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/http
  • @nodejs/net

nodejs-github-bot added the needs-ci PRs that need a full CI run. label Feb 10, 2023
ronag requested review from anonrig and mcollina February 10, 2023 07:55
ronag force-pushed the http-byte-len branch 8 times, most recently from dd09cc5 to 481ed62 Compare February 10, 2023 08:35

mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

lgtm

ronag added request-ci Add this label to start a Jenkins CI on a PR. author ready PRs that have at least one approval, no outstanding review comments, and a CI started. and removed needs-ci PRs that need a full CI run. labels Feb 10, 2023
github-actions Bot added request-ci-failed An error occurred while starting CI via request-ci label, and manual interventon is needed. and removed request-ci Add this label to start a Jenkins CI on a PR. labels Feb 10, 2023

Copy link
Copy Markdown
Contributor
Failed to start CI
- Validating Jenkins credentials
✖  Jenkins credentials invalid
https://github.com/nodejs/node/actions/runs/4142770062

Comment thread lib/_http_outgoing.js Outdated

Copy link
Copy Markdown
Member

I wonder if we could also use the V8 fast calls to improve the underlying byteLengthUtf8() call. That might even improve the situation further, if it's possible?

ronag commented Feb 10, 2023

Copy link
Copy Markdown
Member Author

We already have an ongoing discussion regarding this over at the performance repo.

ronag commented Feb 10, 2023

Copy link
Copy Markdown
Member Author

Here is the link, nodejs/performance#52.

aduh95 added request-ci Add this label to start a Jenkins CI on a PR. and removed request-ci-failed An error occurred while starting CI via request-ci label, and manual interventon is needed. labels Feb 12, 2023
ronag added request-ci Add this label to start a Jenkins CI on a PR. and removed request-ci Add this label to start a Jenkins CI on a PR. labels Feb 15, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Feb 17, 2023

Copy link
Copy Markdown
Collaborator

ronag added the commit-queue Add this label to land a pull request using GitHub Actions. label Feb 21, 2023
nodejs-github-bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Feb 21, 2023

Copy link
Copy Markdown
Collaborator
Commit Queue failed
- Loading data for nodejs/node/pull/46601
✔  Done loading data for nodejs/node/pull/46601
----------------------------------- PR info ------------------------------------
Title      http: correctly calculate strict content length (#46601)
Author     Robert Nagy  (@ronag)
Branch     ronag:http-byte-len -> nodejs:main
Labels     http, author ready
Commits    11
 - http: correctly calculate strict content length
 - http: speedup strict content length
 - http: make sure to pass encoding to Buffer.byteLength
 - http: count writtenBytes even if socket is not ready
 - fixup! http: speedup strict content length
 - fixup! http: speedup strict content length
 - fixuP
 - fixuP
 - fixup
 - fixup: linting
 - fixup: cleanup
Committers 1
 - Robert Nagy 
PR-URL: https://github.com/nodejs/node/pull/46601
Reviewed-By: Matteo Collina 
Reviewed-By: Paolo Insogna 
Reviewed-By: Yagiz Nizipli 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/46601
Reviewed-By: Matteo Collina 
Reviewed-By: Paolo Insogna 
Reviewed-By: Yagiz Nizipli 
--------------------------------------------------------------------------------
   ⚠  Commits were pushed since the last review:
   ⚠  - fixup: linting
   ⚠  - fixup: cleanup
   ℹ  This PR was created on Fri, 10 Feb 2023 07:55:18 GMT
   ✔  Approvals: 3
   ✔  - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/46601#pullrequestreview-1302089257
   ✔  - Paolo Insogna (@ShogunPanda): https://github.com/nodejs/node/pull/46601#pullrequestreview-1292827320
   ✔  - Yagiz Nizipli (@anonrig): https://github.com/nodejs/node/pull/46601#pullrequestreview-1300561862
   ✖  Last GitHub CI failed
   ℹ  Last Full PR CI on 2023-02-17T10:01:39Z: https://ci.nodejs.org/job/node-test-pull-request/49619/
- Querying data for job/node-test-pull-request/49619/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/4234920191

Copy link
Copy Markdown
Collaborator

mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

still LGTM

mcollina added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. and removed commit-queue-failed An error occurred while landing this pull request using GitHub Actions. labels Feb 23, 2023
nodejs-github-bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Feb 23, 2023

Copy link
Copy Markdown
Collaborator
Commit Queue failed
{"message":"Base branch was modified. Review and try the merge again.","documentation_url":"https://docs.github.com/rest/reference/pulls#merge-a-pull-request"}
https://github.com/nodejs/node/actions/runs/4251305015

mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

lgtm

mcollina added commit-queue Add this label to land a pull request using GitHub Actions. and removed commit-queue-failed An error occurred while landing this pull request using GitHub Actions. labels Feb 23, 2023
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Feb 23, 2023
nodejs-github-bot merged commit 9e1824d into nodejs:main Feb 23, 2023

Copy link
Copy Markdown
Collaborator

Landed in 9e1824d

targos pushed a commit that referenced this pull request Mar 13, 2023
Fixes some logical errors related to strict content length.

Also, previously Buffer.byteLength (which is slow) was run regardless of
whether or not the len was required.

PR-URL: #46601
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
danielleadams pushed a commit that referenced this pull request Apr 11, 2023
Fixes some logical errors related to strict content length.

Also, previously Buffer.byteLength (which is slow) was run regardless of
whether or not the len was required.

PR-URL: #46601
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. http Issues or PRs related to the http subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants


Back | FazBrowse Home | New Git URL