Uh oh!
There was an error while loading. Please reload this page.
http2: compat avoid bind and properly cleanup stream - #20374
Conversation
ebc8bb2 to
34ad49aCompared57ba33 to
6c86160CompareThere was a problem hiding this comment.
Why these extra variables instead of just:
this.sendTrailers(this[kResponse][kTrailers]);?
There was a problem hiding this comment.
No particular reason. Just style. I'm fine with changing if you want me to?
apapirovski
left a comment
There was a problem hiding this comment.
This is on a good track but needs a bit of cleanup.
There was a problem hiding this comment.
onStreamCloseRequest? It's not really onRequestFinish.
There was a problem hiding this comment.
Please don't reassign this.
There was a problem hiding this comment.
Are all these detachments necessary? It will certainly make performance worse.
There was a problem hiding this comment.
Same as above: more accurate name and don't re-assign this please.
There was a problem hiding this comment.
Same as above. Unless this is 100% necessary, it would be better not to.
There was a problem hiding this comment.
This change doesn't seem to relate to this PR.
There was a problem hiding this comment.
This change doesn't seem to relate to this PR.
d7a0fbd to
525429aCompareronag
commented
Apr 28, 2018
@apapirovski cleaned up |
20d1dce to
93c4f7dCompareThere was a problem hiding this comment.
res === undefined would be cleaner check here.
There was a problem hiding this comment.
req === undefined is more precise. Also please move const state = after the check.
apapirovski
commented
Apr 28, 2018
apapirovski
commented
May 7, 2018
ping @nodejs/http2 would be nice to have at least one more review on this. |
mcollina
commented
May 7, 2018
Can you add a test for this? |
apapirovski
commented
May 7, 2018
FWIW I don't think it's possible to test this without exporting the |
mcollina
commented
May 7, 2018
👍 to exporting in the internal module. |
apapirovski
commented
May 14, 2018
CI: https://ci.nodejs.org/job/node-test-pull-request/14865/ I will land this once done and create a test myself in a separate PR. |
PR-URL: #20374 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
apapirovski
commented
May 16, 2018
Landed in 0d762af |
PR-URL: #20374 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
PR-URL: nodejs#20374 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
PR-URL: nodejs#20374 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
PR-URL: nodejs#20374 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
PR-URL: nodejs#20374 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Avoid unnecessary function
bind.Also fixes a bug where
kProxySocketwas assignednullon the wrong object as well as properly cleanup the stream object.Checklis
make -j4 test(UNIX), orvcbuild test(Windows) passes