FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

http: simplify drain by ronag · Pull Request #29081 · nodejs/node · GitHub

/ node Public

http: simplify drain - #29081

Closed
ronag wants to merge 1 commit into
nodejs:masterfrom
nxtedition:http-simplify-drain
Closed

http: simplify drain#29081
ronag wants to merge 1 commit into
nodejs:masterfrom
nxtedition:http-simplify-drain

Conversation

ronag commented Aug 11, 2019
edited
Loading

Copy link
Copy Markdown
Member

Simplify and slightly optimize draining outgoing http streams.

Avoid extra event listener and inline with rest of the drain logic.

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

NOTE TO SELF: After this is merged add destroyed and ensure 'drain' is not emitted after destroy(). Also look into removing unnecessary flush class in write.

nodejs-github-bot added the lib / src Issues and PRs related to general changes in the lib or src directory. label Aug 11, 2019

mscdex commented Aug 11, 2019

Copy link
Copy Markdown
Contributor

I think we should be using a symbol instead of an underscore-prefixed property.

ronag force-pushed the http-simplify-drain branch from 078268c to 054d050 Compare August 11, 2019 15:11

ronag commented Aug 11, 2019

Copy link
Copy Markdown
Member Author

@mscdex: fixed

ronag force-pushed the http-simplify-drain branch 7 times, most recently from e82d80e to a6486de Compare August 11, 2019 15:57
Comment thread lib/_http_outgoing.js Outdated
ronag force-pushed the http-simplify-drain branch 4 times, most recently from e9184d5 to 35ba9c3 Compare August 11, 2019 19:35
Comment thread lib/_http_client.js Outdated
ronag force-pushed the http-simplify-drain branch 3 times, most recently from 2a6fb63 to 41a0458 Compare August 13, 2019 13:47

Trott commented Aug 13, 2019

Copy link
Copy Markdown
Member

@nodejs/http

Trott commented Aug 16, 2019

Copy link
Copy Markdown
Member

@ronag Can you give this a rebase to get rid of the conflicts?

@nodejs/collaborators @nodejs/streams This could use some reviews.

ronag force-pushed the http-simplify-drain branch from 41a0458 to dcca00f Compare August 17, 2019 04:44

ronag commented Aug 17, 2019

Copy link
Copy Markdown
Member Author

@Trott fixed

ronag force-pushed the http-simplify-drain branch from dcca00f to 73e760f Compare August 17, 2019 05:11

mcollina left a comment

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

Comment thread lib/_http_outgoing.js

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Trott commented Aug 19, 2019

Copy link
Copy Markdown
Member

Landed in bdf07f4

Trott closed this Aug 19, 2019
Trott pushed a commit that referenced this pull request Aug 19, 2019
Simplify and slightly optimize draining outgoing http streams. Avoid
extra event listener and inline with rest of the drain logic.

PR-URL: #29081
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
targos pushed a commit that referenced this pull request Aug 20, 2019
Simplify and slightly optimize draining outgoing http streams. Avoid
extra event listener and inline with rest of the drain logic.

PR-URL: #29081
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lib / src Issues and PRs related to general changes in the lib or src directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL