Skip to content

net: some scattered cleanup - #24128

Closed
oyyd wants to merge 1 commit into
nodejs:masterfrom
oyyd:net-cleanup
Closed

net: some scattered cleanup#24128
oyyd wants to merge 1 commit into
nodejs:masterfrom
oyyd:net-cleanup

Conversation

@oyyd

@oyydoyyd commented Nov 6, 2018

Copy link
Copy Markdown
Contributor

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-botnodejs-github-bot added the net Issues and PRs related to the net subsystem. label Nov 6, 2018
Comment threaddoc/api/cli.md Outdated

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
ContributorAuthor

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

oyyd commented Nov 12, 2018

Copy link
Copy Markdown
ContributorAuthor

@oyyd
oyydforce-pushed the net-cleanup branch 3 times, most recently from 373e89f to 1187d2bCompareNovember 15, 2018 12:30
@oyyd

oyyd commented Nov 15, 2018

Copy link
Copy Markdown
ContributorAuthor

Comment threaddoc/api/cli.md Outdated

Copy link
Copy Markdown
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
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Resolved.

@oyyd

oyyd commented Nov 15, 2018

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
Contributor

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

@oyyd

oyyd commented Nov 22, 2018

Copy link
Copy Markdown
ContributorAuthor

Any other thoughts on this?

@oyyd

oyyd commented Nov 22, 2018

Copy link
Copy Markdown
ContributorAuthor

Comment threadlib/net.js Outdated

Copy link
Copy Markdown

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
Copy Markdown
ContributorAuthor

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
Copy Markdown
Member

@oyyd can you rebase?

@oyyd
oyydforce-pushed the net-cleanup branch 2 times, most recently from 58c078e to 8dc83d5CompareMarch 13, 2019 13:20
@oyyd

oyyd commented Mar 13, 2019

Copy link
Copy Markdown
ContributorAuthor

@lpinca

Copy link
Copy Markdown
Member

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

@refackrefack 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
Copy Markdown
Member

@lpinca

Copy link
Copy Markdown
Member

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 '::'.
@oyydoyyd reopened this Mar 14, 2019
@oyyd

oyyd commented Mar 14, 2019

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
Contributor

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 <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
@oyyd

oyyd commented Mar 15, 2019

Copy link
Copy Markdown
ContributorAuthor

Landed in cd8b739. Thank you all!

@oyydoyyd 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 <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
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 <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
@targostargos mentioned this pull request Mar 27, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.netIssues and PRs related to the net subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@oyyd@refack@lpinca@BridgeAR@trygve-lie@Trott@addaleax@vsemozhetbyt@nodejs-github-bot