Skip to content

doc: clarify socket destroyed behavior - #65395

Open
dayun6530 wants to merge 1 commit into
nodejs:mainfrom
dayun6530:doc/clarify-net-socket-destroy
Open

doc: clarify socket destroyed behavior#65395
dayun6530 wants to merge 1 commit into
nodejs:mainfrom
dayun6530:doc/clarify-net-socket-destroy

Conversation

@dayun6530

Copy link
Copy Markdown

Clarify the socket.destroyed documentation to reflect that a destroyed
net.Socket can be reused by calling socket.connect() again.

The previous wording could be read as if no further data transfer were ever
possible after destruction, while the socket can be reconnected and used again.

Fixes: #57367

Tests: make lint-md

Signed-off-by: Dayun <dlekdbs6530@gmail.com>
@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 Aug 19, 2026
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.

sockets can be undestroyed, confusing documentation

2 participants