diff options
author | James M Snell <jasnell@gmail.com> | 2020-05-28 23:51:10 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2020-06-01 18:38:00 +0300 |
commit | 41796ebd30744173cbe19201493349e7c8995082 (patch) | |
tree | ac309049969b115cd9bea8d71732cb4aa4b8efaa /doc/api/child_process.md | |
parent | a85ce885bddaf5fca00dc7d13eb3c5a99663e60f (diff) |
net: remove long deprecated server.connections property
The server.connections property was runtime deprecated in the
0.9 days. It was replaced with getConnections(). It is not
simply an alias for getConnections() because it fails to take
connections shared with forks into consideration. Let's not
keep it around forever and move it to end of life
Signed-off-by: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/33647
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'doc/api/child_process.md')
-rw-r--r-- | doc/api/child_process.md | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 5657f2014ab..2f18567737e 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -1379,9 +1379,8 @@ process.on('message', (m, socket) => { ``` Once a socket has been passed to a child, the parent is no longer capable of -tracking when the socket is destroyed. To indicate this, the `.connections` -property becomes `null`. It is recommended not to use `.maxConnections` when -this occurs. +tracking when the socket is destroyed. It is recommended not to use +`.maxConnections` when this occurs. It is also recommended that any `'message'` handlers in the child process verify that `socket` exists, as the connection may have been closed during the |