Skip to content

Conversation

@jasnell
Copy link
Member

A number of cleanups and improvements in core.js

Getting these out of the way before working on a larger cleanup around the lifecycle and error handling in Http2Stream and Http2Session

ping @nodejs/http2

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

http2

@nodejs-github-botnodejs-github-bot added dont-land-on-v4.x http2 Issues or PRs related to the http2 subsystem. labels Nov 22, 2017
@jasnell
Copy link
MemberAuthor

Copy link
Contributor

@apapirovskiapapirovski left a comment

Choose a reason for hiding this comment

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

Big fan of kUpdateTimer, should limit the number of accidental timeout bugs. (It's easy to miss calling both _unrefActive as necessary.)

@jasnell
Copy link
MemberAuthor

btw, In a subsequent PR I'm going to be renaming the streamClosed event to close, per what is standard for streams in general

Copy link
Contributor

@maclover7maclover7 left a comment

Choose a reason for hiding this comment

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

two small copy paste errors :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Http2Session

Copy link
Contributor

Choose a reason for hiding this comment

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

Http2Session

@jasnell
Copy link
MemberAuthor

@maclover7 ... fixed :-)

@jasnell
Copy link
MemberAuthor

osx and freebsd ci's failed because I pushed a new commit before those could run. Will re-run those soon

@jasnell
Copy link
MemberAuthor

jasnell added a commit that referenced this pull request Nov 24, 2017
* fixup js debug messages * simplify and improve rstStream * improve and simplify _read * simplify and improve priority * simplify on ready a bit * simplify and improve respond/push * reduce duplication with _unrefActive * simplify stream close handling PR-URL: #17209 Reviewed-By: Anatoli Papirovski <[email protected]>
@jasnell
Copy link
MemberAuthor

Landed in 9d87082

@jasnelljasnell closed this Nov 24, 2017
MylesBorins pushed a commit that referenced this pull request Dec 7, 2017
* fixup js debug messages * simplify and improve rstStream * improve and simplify _read * simplify and improve priority * simplify on ready a bit * simplify and improve respond/push * reduce duplication with _unrefActive * simplify stream close handling PR-URL: #17209 Reviewed-By: Anatoli Papirovski <[email protected]>
MylesBorins pushed a commit that referenced this pull request Dec 7, 2017
* fixup js debug messages * simplify and improve rstStream * improve and simplify _read * simplify and improve priority * simplify on ready a bit * simplify and improve respond/push * reduce duplication with _unrefActive * simplify stream close handling PR-URL: #17209 Reviewed-By: Anatoli Papirovski <[email protected]>
@MylesBorinsMylesBorins mentioned this pull request Dec 7, 2017
MylesBorins pushed a commit that referenced this pull request Dec 8, 2017
* fixup js debug messages * simplify and improve rstStream * improve and simplify _read * simplify and improve priority * simplify on ready a bit * simplify and improve respond/push * reduce duplication with _unrefActive * simplify stream close handling PR-URL: #17209 Reviewed-By: Anatoli Papirovski <[email protected]>
MylesBorins pushed a commit that referenced this pull request Dec 8, 2017
* fixup js debug messages * simplify and improve rstStream * improve and simplify _read * simplify and improve priority * simplify on ready a bit * simplify and improve respond/push * reduce duplication with _unrefActive * simplify stream close handling PR-URL: #17209 Reviewed-By: Anatoli Papirovski <[email protected]>
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@apapirovski@maclover7@nodejs-github-bot