Skip to content

http2: eliminate unnecessary nextTicks, use stream close event - #19451

Closed
jasnell wants to merge 2 commits into
nodejs:masterfrom
jasnell:http2-next-tick
Closed

http2: eliminate unnecessary nextTicks, use stream close event#19451
jasnell wants to merge 2 commits into
nodejs:masterfrom
jasnell:http2-next-tick

Conversation

@jasnell

Copy link
Copy Markdown
Member
  • Eliminate some unnecessary next ticks
  • Use streams close event for Http2Stream

/cc @addaleax@mcollina@mafintosh

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]

Streams were recently updated to emit their own close event. The
Http2Stream was an exception because it included the close argument
with the close event. Refactor that to use the built in close.
@nodejs-github-botnodejs-github-bot added dont-land-on-v4.x http2 Issues or PRs related to the http2 subsystem. labels Mar 19, 2018

@mcollinamcollina 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.

LGTM

@jasnell

Copy link
Copy Markdown
MemberAuthor

@jasnell

Copy link
Copy Markdown
MemberAuthor

Failure in CI is unrelated.

jasnell added a commit that referenced this pull request Mar 22, 2018
PR-URL: #19451
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
jasnell added a commit that referenced this pull request Mar 22, 2018
Streams were recently updated to emit their own close event. The
Http2Stream was an exception because it included the close argument
with the close event. Refactor that to use the built in close.
PR-URL: #19451
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
@jasnell

Copy link
Copy Markdown
MemberAuthor

Landed in ab75548 and cef9097

@jasnelljasnell closed this Mar 22, 2018
targos pushed a commit that referenced this pull request Mar 24, 2018
PR-URL: #19451
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
@targos

Copy link
Copy Markdown
Member

I think commit 2 depends on #18438 (semver-major). Marking dont-land-on-v9.x

kjin pushed a commit to kjin/node that referenced this pull request May 1, 2018
PR-URL: nodejs#19451
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
MylesBorins pushed a commit that referenced this pull request May 2, 2018
Backport-PR-URL: #20456
PR-URL: #19451
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
@MylesBorinsMylesBorins mentioned this pull request May 2, 2018
MylesBorins pushed a commit that referenced this pull request May 15, 2018
Backport-PR-URL: #20456
PR-URL: #19451
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
MylesBorins pushed a commit that referenced this pull request May 15, 2018
Backport-PR-URL: #20456
PR-URL: #19451
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
@addaleaxaddaleax mentioned this pull request Oct 20, 2018
2 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

http2Issues or PRs related to the http2 subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@jasnell@targos@mcollina@nodejs-github-bot