Skip to content

doc: clarify socket.setKeepAlive initialDelay arg#62171

Open
efekrskl wants to merge 4 commits into
nodejs:mainfrom
efekrskl:doc/socket-initial-delay
Open

doc: clarify socket.setKeepAlive initialDelay arg#62171
efekrskl wants to merge 4 commits into
nodejs:mainfrom
efekrskl:doc/socket-initial-delay

Conversation

@efekrskl
Copy link
Copy Markdown
Contributor

@efekrskl efekrskl commented Mar 9, 2026

Closes #57712

@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. net Issues and PRs related to the net subsystem. labels Mar 9, 2026
Comment thread doc/api/net.md Outdated
Copy link
Copy Markdown
Member

@mertcanaltin mertcanaltin left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread doc/api/net.md
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is it truncates or "rounds down to the nearest whole second" ?

Copy link
Copy Markdown
Contributor Author

@efekrskl efekrskl May 2, 2026

Choose a reason for hiding this comment

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

imo truncates is better as the behaviour would be same as Math.trunc() in this case. We also have examples for further clarification

Comment thread doc/api/net.md Outdated
efekrskl and others added 4 commits June 5, 2026 22:18
Signed-off-by: Efe Karasakal <hi@efe.dev>
Co-authored-by: Ethan Arrowood <ethan@arrowood.dev>
@efekrskl efekrskl force-pushed the doc/socket-initial-delay branch from 3f2ee5a to 1d6fa32 Compare June 5, 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. net Issues and PRs related to the net subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

setkeepalive < 1000 silently ignored

5 participants