net: some scattered cleanup · nodejs/node@24e96b2 · GitHub
Skip to content

Commit 24e96b2

Browse files
oyydtargos
authored andcommitted
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: #24128 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 1b45534 commit 24e96b2

3 files changed

Lines changed: 17 additions & 9 deletions

File tree

doc/api/cli.md

Lines changed: 5 additions & 0 deletions

lib/internal/main/print_help.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ const envVars = new Map([
2828
'of directories prefixed to the module search path' }],
2929
['NODE_PENDING_DEPRECATION', { helpText: 'set to 1 to emit pending ' +
3030
'deprecation warnings' }],
31+
['NODE_PENDING_PIPE_INSTANCES', { helpText: 'set the number of pending ' +
32+
'pipe instance handles on Windows' }],
3133
['NODE_PRESERVE_SYMLINKS', { helpText: 'set to 1 to preserve symbolic ' +
3234
'links when resolving and caching modules' }],
3335
['NODE_REDIRECT_WARNINGS', { helpText: 'write warnings to path instead ' +

lib/net.js

Lines changed: 10 additions & 9 deletions

0 commit comments

Comments
 (0)