-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net: some scattered cleanup #24128
net: some scattered cleanup #24128
Conversation
doc/api/cli.md
Outdated
@@ -751,6 +751,11 @@ threadpool by setting the `'UV_THREADPOOL_SIZE'` environment variable to a value | |||
greater than `4` (its current default value). For more information, see the | |||
[libuv threadpool documentation][]. | |||
|
|||
### `NODE_PENDING_PIPE_INSTANCES=instances` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add an YAML added:
block, similar to other items in this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also: it seems these sections are sorted alphabetically, so this one needs to be placed after the NODE_PENDING_DEPRECATION=1
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@addaleax Though NODE_PENDING_DEPRECATION
could be documented here, it's "added" long time ago rather than a new feature. Maybe we should keep the document here without added:
block?
Also: it seems these sections are sorted alphabetically, so this one needs to be placed after the NODE_PENDING_DEPRECATION=1.
Done!
373e89f
to
1187d2b
Compare
doc/api/cli.md
Outdated
### `NODE_PENDING_PIPE_INSTANCES=instances` | ||
|
||
Set the number of pending pipe instance handles when the pipe server is waiting | ||
for connections. Note that this setting applies to Windows only. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for connections. Note that this setting applies to Windows only. | |
for connections. This setting applies to Windows only. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved.
Resume: https://ci.nodejs.org/job/node-test-pull-request/18646/
@addaleax I see that #24289 documents And does this still LGTY? |
Sorry about the |
Any other thoughts on this? |
lib/net.js
Outdated
rval = createServerHandle('::', port, 6, fd, flags); | ||
======= | ||
rval = createServerHandle(DEFAULT_IPV6_ADDR, port, 6, fd); | ||
>>>>>>> a6a109ee94... net: some scattered cleanup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these merge conflicts supposed to be here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, my bad.
@oyyd can you rebase? |
58c078e
to
8dc83d5
Compare
Thank you. I think you can land this after a green CI. |
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 '::'.
The tests on |
Probably was a transient issue - https://ci.nodejs.org/job/node-test-commit-arm-fanned/7205/ |
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>
Landed in cd8b739. Thank you all! |
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: nodejs#24128 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
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>
This commit cleans up net module, including:
handle.readable
andhandle.writable
. It's add in Server.listen({ fd: number }) node-v0.x-archive#3422 and I see nowhere we use these two properties right now.NODE_PENDING_PIPE_INSTANCES
. It was add in 99c9d19 long time ago but was not documented and there is no test for it. Maybe we can consider removing it?Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes