Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup: add note regarding TCP rst
  • Loading branch information
ronag committed Apr 13, 2020
commit b70cdcfe5199c07d7d6130bba6c779c60a54993b
3 changes: 2 additions & 1 deletion doc/api/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,8 @@ added: v0.1.90
* `error` {Object}
* Returns: {net.Socket}

Ensures that no more I/O activity happens on this socket.
Ensures that no more I/O activity happens on this socket. This destroys
the stream but does not explicitly cause a TCP stream reset (RST).
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@lpinca: please note updated version, better?

Copy link
Copy Markdown
Member

@lpinca lpinca Apr 13, 2020

Choose a reason for hiding this comment

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

I would honestly not add those details that I think are confusing for most users. "Destroys the stream and closes the connection" is enough. Interested users can dig by themselves to see what happens under the hood.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Changed to your suggestion.


See, [`writable.destroy()`][] for further details.
Comment thread
ronag marked this conversation as resolved.
Outdated

Expand Down