From 24e96b24cfe5b0d48577ec4537c152f49b5943b4 Mon Sep 17 00:00:00 2001 From: oyyd Date: Wed, 13 Mar 2019 21:10:54 +0800 Subject: [PATCH] net: some scattered cleanup This commit cleans up net module, including: 1. remove assigning `handle.readable` and `handle.writable` 2. documents `NODE_PENDING_PIPE_INSTANCES` enviroment variable 3. use constants for '0.0.0.0' and '::'. PR-URL: https://github.com/nodejs/node/pull/24128 Reviewed-By: Anna Henningsen Reviewed-By: Luigi Pinca Reviewed-By: Ruben Bridgewater --- doc/api/cli.md | 5 +++++ lib/internal/main/print_help.js | 2 ++ lib/net.js | 19 ++++++++++--------- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 56d2d2e89d4992..59554b1c679327 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -752,6 +752,11 @@ unless either the `--pending-deprecation` command line flag, or the are used to provide a kind of selective "early warning" mechanism that developers may leverage to detect deprecated API usage. +### `NODE_PENDING_PIPE_INSTANCES=instances` + +Set the number of pending pipe instance handles when the pipe server is waiting +for connections. This setting applies to Windows only. + ### `NODE_PRESERVE_SYMLINKS=1`