Skip to content
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

Closed
wants to merge 1 commit into from
Closed

net: some scattered cleanup #24128

wants to merge 1 commit into from

Conversation

oyyd
Copy link
Contributor

@oyyd oyyd commented Nov 6, 2018

This commit cleans up net module, including:

  • Remove assigning handle.readable and handle.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.
  • Documents the enviroment variable of 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?
  • Use constants for '0.0.0.0' and '::'.
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the net Issues and PRs related to the net subsystem. label Nov 6, 2018
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`
Copy link
Member

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?

Copy link
Contributor

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.

Copy link
Contributor Author

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!

@oyyd
Copy link
Contributor Author

oyyd commented Nov 12, 2018

@oyyd oyyd force-pushed the net-cleanup branch 3 times, most recently from 373e89f to 1187d2b Compare November 15, 2018 12:30
@oyyd
Copy link
Contributor Author

oyyd commented Nov 15, 2018

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for connections. Note that this setting applies to Windows only.
for connections. This setting applies to Windows only.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved.

@oyyd
Copy link
Contributor Author

oyyd commented Nov 15, 2018

Resume: https://ci.nodejs.org/job/node-test-pull-request/18646/

Can you add an YAML added: block, similar to other items in this file?

@addaleax I see that #24289 documents NODE_TLS_REJECT_UNAUTHORIZED without the added: block so that I believe this should be okay.

And does this still LGTY?

@refack
Copy link
Contributor

refack commented Nov 15, 2018

Sorry about the node-test-linux-linked-withoutssl. I'm working on adding this, and it's just not stable yet.

@oyyd
Copy link
Contributor Author

oyyd commented Nov 22, 2018

Any other thoughts on this?

@oyyd
Copy link
Contributor Author

oyyd commented Nov 22, 2018

lib/net.js Outdated
rval = createServerHandle('::', port, 6, fd, flags);
=======
rval = createServerHandle(DEFAULT_IPV6_ADDR, port, 6, fd);
>>>>>>> a6a109ee94... net: some scattered cleanup

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, my bad.

@lpinca
Copy link
Member

lpinca commented Mar 13, 2019

@oyyd can you rebase?

@oyyd oyyd force-pushed the net-cleanup branch 2 times, most recently from 58c078e to 8dc83d5 Compare March 13, 2019 13:20
@oyyd
Copy link
Contributor Author

oyyd commented Mar 13, 2019

@lpinca
Copy link
Member

lpinca commented Mar 13, 2019

Thank you. I think you can land this after a green CI.

@refack refack added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Mar 13, 2019
@BridgeAR
Copy link
Member

@lpinca
Copy link
Member

lpinca commented Mar 14, 2019

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 '::'.
@oyyd oyyd reopened this Mar 14, 2019
@oyyd
Copy link
Contributor Author

oyyd commented Mar 14, 2019

The tests on node-test-binary-arm are failing continuously. I have merged the master and resume the CI again. (Sorry for closing the PR unexpectly).

CI: https://ci.nodejs.org/job/node-test-pull-request/21539/

@refack
Copy link
Contributor

refack commented Mar 14, 2019

Probably was a transient issue - https://ci.nodejs.org/job/node-test-commit-arm-fanned/7205/

oyyd added a commit that referenced this pull request Mar 15, 2019
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 <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
@oyyd
Copy link
Contributor Author

oyyd commented Mar 15, 2019

Landed in cd8b739. Thank you all!

@oyyd oyyd closed this Mar 15, 2019
targos pushed a commit to targos/node that referenced this pull request Mar 27, 2019
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 <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
targos pushed a commit that referenced this pull request Mar 27, 2019
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 <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. net Issues and PRs related to the net subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants