From 90ee8de019623d7dd3c99d711486683b221f3a10 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 '::'. --- 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 7e7ef3e285878e..75459090e41575 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -768,6 +768,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`