Skip to content

doc: fix default limit of maxHeadersCount - #65472

Open
arynh wants to merge 3 commits into
nodejs:mainfrom
arynh:docs/default-header-count-limit
Open

doc: fix default limit of maxHeadersCount#65472
arynh wants to merge 3 commits into
nodejs:mainfrom
arynh:docs/default-header-count-limit

Conversation

@arynh

@arynh arynh commented Aug 21, 2026

Copy link
Copy Markdown

The documented limit of 2000 refers to header pairs (counting both keys and values), which gives an effective limit of 1000 headers.

This applies to both client and server; they have the same mechanism.

This fixes issue #65470, see the details added there for verification of the discrepancy.

The documented limit of 2000 refers to header pairs (counting both
keys and values), which gives an effective limit of 1000 headers.

This applies to both client and server; they have the same mechanism.

Signed-off-by: Aryn H <arynh@protonmail.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/http
  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. http Issues or PRs related to the http subsystem. labels Aug 21, 2026
@deokjinkim

deokjinkim commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

@arynh Could you update doc/api/https.md as well? Its server.maxHeadersCount section still documents the default as 2000, although HTTPS uses the same HTTP parser.

@pimterry pimterry added commit-queue Add this label to land a pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Aug 24, 2026

@pimterry pimterry 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.

Nearly missed @deokjinkim's comment here and merged this, oops!

Adding a blocking review to stop somebody else doing the same, I agree we should update the default consistently on the HTTPS page too.

@arynh

arynh commented Aug 24, 2026

Copy link
Copy Markdown
Author

Yep I'll update the HTTPS page too, missed that default

arynh and others added 2 commits August 24, 2026 13:59
Following up to the fix in the HTTP API, HTTPS uses the same request/header parsing logic.
@arynh

arynh commented Aug 24, 2026

Copy link
Copy Markdown
Author

Updated! Good catch @deokjinkim

@deokjinkim deokjinkim added 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. labels Aug 24, 2026
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. doc Issues and PRs related to the documentations. http Issues or PRs related to the http subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants