Skip to content

doc: clarify server keep-alive options#63338

Open
MukundaKatta wants to merge 1 commit into
nodejs:mainfrom
MukundaKatta:codex/doc-server-keepalive-options
Open

doc: clarify server keep-alive options#63338
MukundaKatta wants to merge 1 commit into
nodejs:mainfrom
MukundaKatta:codex/doc-server-keepalive-options

Conversation

@MukundaKatta
Copy link
Copy Markdown

Fixes: #61850

This clarifies two server keep-alive docs points:

  • keepAlive on net.createServer() and http.createServer() enables TCP keep-alive by calling socket.setKeepAlive() for accepted sockets.
  • server.keepAliveTimeout = 0 disables only the idle keep-alive timeout; it does not mean HTTP keep-alive itself is disabled.

Validation:

  • git diff --check
  • node tools/lint-md/lint-md.mjs doc/api/http.md doc/api/net.md

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/http
  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added the doc Issues and PRs related to the documentations. label May 15, 2026
Signed-off-by: mukunda katta <mukunda.vjcs6@gmail.com>
@MukundaKatta MukundaKatta force-pushed the codex/doc-server-keepalive-options branch from e726cc7 to b3d6b64 Compare May 15, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarification needed regarding the http/net Server keepAlive options

3 participants