Skip to content

http: increase keepAliveTimeout default to 65 seconds - #62782

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
pimterry:keepalive-timeout-65s
Apr 26, 2026
Merged

http: increase keepAliveTimeout default to 65 seconds#62782
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
pimterry:keepalive-timeout-65s

Conversation

@pimterry

Copy link
Copy Markdown
Member

This PR takes the code from #59203 (now stalled) and fixes it up to get the tests & linting passing so we can hopefully merge just in time for v26. Conclusion there I think it this is possibly semver-major, we're not 100% sure but better to release with a major bump initially at least.

See discussion there for context. I've kept @pras529 as a co-author on the commit.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/http
  • @nodejs/net

@nodejs-github-botnodejs-github-bot added http Issues or PRs related to the http subsystem. needs-ci PRs that need a full CI run. labels Apr 16, 2026
Co-authored-by: Prashant Bansal <prashantbansal529@gmail.com>
Signed-off-by: Tim Perry <pimterry@gmail.com>
@codecov

codecovBot commented Apr 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.68%. Comparing base (2071c44) to head (a110f7e).
⚠️ Report is 143 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@## main #62782 +/- ##
==========================================
- Coverage 89.68% 89.68% -0.01% 
==========================================
Files 706 706 Lines 218143 218191 +48 Branches 41732 41741 +9 ==========================================
+ Hits 195650 195693 +43 - Misses 14402 14423 +21 + Partials 8091 8075 -16 
Files with missing linesCoverage Δ
lib/_http_server.js97.06% <100.00%> (-0.22%)⬇️

... and 48 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@meixgmeixg added semver-major PRs that contain breaking changes and should be released in the next major version. request-ci Add this label to start a Jenkins CI on a PR. labels Apr 17, 2026
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 17, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@gurgundaygurgunday added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 18, 2026
@pimterrypimterry added the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 20, 2026
@nodejs-github-botnodejs-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 Apr 20, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator
Commit Queue failed
- Loading data for nodejs/node/pull/62782
✔ Done loading data for nodejs/node/pull/62782
----------------------------------- PR info ------------------------------------
Title http: increase keepAliveTimeout default to 65 seconds (#62782)
⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile!
Branch pimterry:keepalive-timeout-65s -> nodejs:main
Labels http, semver-major, author ready, needs-ci
Commits 1
- http: increase keepAliveTimeout default to 65 seconds
Committers 1
- Tim Perry <pimterry@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/62782
Reviewed-By: Xuguang Mei <meixuguang@gmail.com>
Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/62782
Reviewed-By: Xuguang Mei <meixuguang@gmail.com>
Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
--------------------------------------------------------------------------------
ℹ This PR was created on Thu, 16 Apr 2026 21:05:53 GMT
✔ Approvals: 4
✔ - Xuguang Mei (@meixg): https://github.com/nodejs/node/pull/62782#pullrequestreview-4125720099
✔ - Beth Griggs (@BethGriggs): https://github.com/nodejs/node/pull/62782#pullrequestreview-4129058692
✔ - Minwoo Jung (@JungMinu): https://github.com/nodejs/node/pull/62782#pullrequestreview-4132919093
✔ - Gürgün Dayıoğlu (@gurgunday): https://github.com/nodejs/node/pull/62782#pullrequestreview-4134117996
✘ semver-major requires at least 2 TSC approvals
✔ Last GitHub CI successful
ℹ Last Full PR CI on 2026-04-17T08:50:28Z: https://ci.nodejs.org/job/node-test-pull-request/72736/
- Querying data for job/node-test-pull-request/72736/
✔ Build data downloaded
✔ Last Jenkins CI successful
--------------------------------------------------------------------------------
✔ Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/24660527138

@pimterry

Copy link
Copy Markdown
MemberAuthor

@nodejs/tsc can you take a look at this semver-major please? See #59203 for context.

@pimterrypimterry 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 Apr 20, 2026
@nodejs-github-botnodejs-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 Apr 20, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator
Commit Queue failed
- Loading data for nodejs/node/pull/62782
✔ Done loading data for nodejs/node/pull/62782
----------------------------------- PR info ------------------------------------
Title http: increase keepAliveTimeout default to 65 seconds (#62782)
⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile!
Branch pimterry:keepalive-timeout-65s -> nodejs:main
Labels http, semver-major, author ready, needs-ci
Commits 1
- http: increase keepAliveTimeout default to 65 seconds
Committers 1
- Tim Perry <pimterry@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/62782
Reviewed-By: Xuguang Mei <meixuguang@gmail.com>
Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/62782
Reviewed-By: Xuguang Mei <meixuguang@gmail.com>
Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
--------------------------------------------------------------------------------
ℹ This PR was created on Thu, 16 Apr 2026 21:05:53 GMT
✔ Approvals: 5
✔ - Xuguang Mei (@meixg): https://github.com/nodejs/node/pull/62782#pullrequestreview-4125720099
✔ - Beth Griggs (@BethGriggs): https://github.com/nodejs/node/pull/62782#pullrequestreview-4129058692
✔ - Minwoo Jung (@JungMinu): https://github.com/nodejs/node/pull/62782#pullrequestreview-4132919093
✔ - Gürgün Dayıoğlu (@gurgunday): https://github.com/nodejs/node/pull/62782#pullrequestreview-4134117996
✔ - Richard Lau (@richardlau) (TSC): https://github.com/nodejs/node/pull/62782#pullrequestreview-4141787491
✘ semver-major requires at least 2 TSC approvals
✔ Last GitHub CI successful
ℹ Last Full PR CI on 2026-04-20T10:08:10Z: https://ci.nodejs.org/job/node-test-pull-request/72736/
- Querying data for job/node-test-pull-request/72736/
✔ Build data downloaded
✔ Last Jenkins CI successful
--------------------------------------------------------------------------------
✔ Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/24680062576

@pimterry

Copy link
Copy Markdown
MemberAuthor

This is still waiting for a 2nd @nodejs/tsc approval if anybody has a minute. Sorry, I thought there were 2 before my latest commit queue but I was wrong, this is still blocked 😬

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

RSLGTM

@pimterrypimterry 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 Apr 26, 2026
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 26, 2026
@nodejs-github-bot
nodejs-github-bot merged commit 9f75269 into nodejs:mainApr 26, 2026
91 of 92 checks passed
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 9f75269

jahanzaib-iqbal-dev added a commit to jahanzaib-iqbal-dev/node that referenced this pull request Jun 18, 2026
PR nodejs#62782 updated the keepAliveTimeout default from 5s to 65s and
correctly updated server.keepAliveTimeout (line 2006), but the
http.createServer() options table at line 3775 was not updated.
Fix the remaining reference to reflect the current default of 65000ms.
Signed-off-by: Jahanzaib iqbal <jahanzaib@gsoftconsulting.com>
nodejs-github-bot pushed a commit that referenced this pull request Jun 22, 2026
PR #62782 updated the keepAliveTimeout default from 5s to 65s and
correctly updated server.keepAliveTimeout (line 2006), but the
http.createServer() options table at line 3775 was not updated.
Fix the remaining reference to reflect the current default of 65000ms.
Signed-off-by: Jahanzaib iqbal <jahanzaib@gsoftconsulting.com>
PR-URL: #63974
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
richardlau pushed a commit that referenced this pull request Jul 3, 2026
PR #62782 updated the keepAliveTimeout default from 5s to 65s and
correctly updated server.keepAliveTimeout (line 2006), but the
http.createServer() options table at line 3775 was not updated.
Fix the remaining reference to reflect the current default of 65000ms.
Signed-off-by: Jahanzaib iqbal <jahanzaib@gsoftconsulting.com>
PR-URL: #63974
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
aduh95 pushed a commit that referenced this pull request Jul 8, 2026
PR #62782 updated the keepAliveTimeout default from 5s to 65s and
correctly updated server.keepAliveTimeout (line 2006), but the
http.createServer() options table at line 3775 was not updated.
Fix the remaining reference to reflect the current default of 65000ms.
Signed-off-by: Jahanzaib iqbal <jahanzaib@gsoftconsulting.com>
PR-URL: #63974
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
aduh95 pushed a commit that referenced this pull request Jul 21, 2026
PR #62782 updated the keepAliveTimeout default from 5s to 65s and
correctly updated server.keepAliveTimeout (line 2006), but the
http.createServer() options table at line 3775 was not updated.
Fix the remaining reference to reflect the current default of 65000ms.
Signed-off-by: Jahanzaib iqbal <jahanzaib@gsoftconsulting.com>
PR-URL: #63974
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
aduh95 pushed a commit that referenced this pull request Jul 22, 2026
PR #62782 updated the keepAliveTimeout default from 5s to 65s and
correctly updated server.keepAliveTimeout (line 2006), but the
http.createServer() options table at line 3775 was not updated.
Fix the remaining reference to reflect the current default of 65000ms.
Signed-off-by: Jahanzaib iqbal <jahanzaib@gsoftconsulting.com>
PR-URL: #63974
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
aduh95 pushed a commit that referenced this pull request Jul 30, 2026
PR #62782 updated the keepAliveTimeout default from 5s to 65s and
correctly updated server.keepAliveTimeout (line 2006), but the
http.createServer() options table at line 3775 was not updated.
Fix the remaining reference to reflect the current default of 65000ms.
Signed-off-by: Jahanzaib iqbal <jahanzaib@gsoftconsulting.com>
PR-URL: #63974
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.httpIssues or PRs related to the http subsystem.needs-ciPRs that need a full CI run.semver-majorPRs that contain breaking changes and should be released in the next major version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@pimterry@nodejs-github-bot@panva@JungMinu@richardlau@BethGriggs@meixg@trivikr@gurgunday