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

Use stream._construct #33586

Open
1 of 5 tasks
ronag opened this issue May 27, 2020 · 5 comments
Open
1 of 5 tasks

Use stream._construct #33586

ronag opened this issue May 27, 2020 · 5 comments
Labels
meta Issues and PRs related to the general management of the project. stream Issues and PRs related to the stream subsystem.

Comments

@ronag
Copy link
Member

ronag commented May 27, 2020

Since we have landed construct in streams we should try and update relevant parts of core where it makes sense to use this feature:

  • fs (was fixed as part of the construct PR)
  • net
  • http
  • http2
  • ...
@ronag ronag added the stream Issues and PRs related to the stream subsystem. label May 27, 2020
@ronag
Copy link
Member Author

ronag commented May 27, 2020

net is tricky because of .connect() which we agreed on not deprecating #33204. It has a similar role to _construct. Will give it some more thought and see if we can implement connect as _construct.

@rickyes
Copy link
Contributor

rickyes commented May 27, 2020

@ronag I've been working on http-related source code lately, maybe I'll try an update to stream._construct.

@ronag ronag added the meta Issues and PRs related to the general management of the project. label May 27, 2020
@antsmartian
Copy link
Contributor

antsmartian commented May 29, 2020

@ronag It would be great, if we can add the fs actual PR (#29656) in the description. So that it helps others to know more about the actual implementation.

@ronag
Copy link
Member Author

ronag commented May 29, 2020

@antsmartian Good call. Updated.

@ronag
Copy link
Member Author

ronag commented Jun 27, 2020

The whole Socket.connect thing makes life very difficult... I wish we could somehow deprecate and remove it :(.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Issues and PRs related to the general management of the project. stream Issues and PRs related to the stream subsystem.
Projects
None yet
Development

No branches or pull requests

3 participants