Skip to content

doc: fix default limit of maxHeadersCount - #65472

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
arynh:docs/default-header-count-limit
Aug 25, 2026
Merged

doc: fix default limit of maxHeadersCount#65472
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
arynh:docs/default-header-count-limit

Conversation

@arynh

@arynh arynh commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

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.

@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
Contributor Author

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

@arynh

arynh commented Aug 24, 2026

Copy link
Copy Markdown
Contributor 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
@trivikr

trivikr commented Aug 25, 2026

Copy link
Copy Markdown
Member

@arynh Merge commits don't work with our tooling. Can you please rebase?

@arynh
arynh force-pushed the docs/default-header-count-limit branch from 0cc576e to 70e7829 Compare August 25, 2026 07:14
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>
@arynh
arynh force-pushed the docs/default-header-count-limit branch from 70e7829 to 471808e Compare August 25, 2026 07:15
@arynh

arynh commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

got it, squashed then rebased so my branch is just one commit ahead of main atm

@pimterry pimterry added commit-queue Add this label to land a pull request using GitHub Actions. and removed commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Aug 25, 2026
@nodejs-github-bot
nodejs-github-bot merged commit 056e2ae into nodejs:main Aug 25, 2026
18 checks passed
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 056e2ae

@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 25, 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. 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.

7 participants