Uh oh!
There was an error while loading. Please reload this page.
lib: add an alias at addListener on Server connection socket - #27325
lib: add an alias at addListener on Server connection socket#27325himself65 wants to merge 1 commit into
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
apapirovski
left a comment
There was a problem hiding this comment.
This isn't a complete change. Code around line 748 also needs to be modified to add this line: this.addListener = net.Socket.prototype.addListener;
Personally I would also modify the relevant test (test-http-server-unconsume.js) to account for this change.
59dba46 to
9fd9921Comparehimself65
commented
Apr 22, 2019
@apapirovski fixed |
Antonius-S
commented
Apr 22, 2019
Isn't more gentle and logical to add |
why? all this extend and all behavior should be the same as Lines 269 to 273 in 2161690 |
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@Antonius-S@SimonSchick Hi, did you have any other thought on this ? Otherwise we'll land this. |
SimonSchick
commented
Apr 25, 2019
@ZYSzys Imo this is not a fix but just a band-aid/work-around, this should be fixed using the new listener event. Also doesn't that break I don't really have any authority here and therefor won't block anything but I don't think this should be merged. |
himself65
commented
Apr 25, 2019
@SimonSchick |
himself65
commented
Apr 26, 2019
@SimonSchick |
@himself65 imo that PR is a step back. Just add Otherwise, yes we could use an event for newListener but that’s a lot more work... I dunno. Seems like semantics. Also as far as I can tell the main reason to not use events here would be performance. |
Trott
commented
Apr 30, 2019
I removed |
himself65
commented
May 1, 2019
@Trott added |
Uh oh!
There was an error while loading. Please reload this page.
027b976 to
f4d2da6Compare
Trott
left a comment
There was a problem hiding this comment.
LGTM. Could add Fixes: https://github.com/nodejs/node/issues/27199 to the commit message?
This comment has been minimized.
This comment has been minimized.
himself65
commented
May 2, 2019
sure |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
himself65
commented
May 19, 2019
no one to merge this? |
nodejs-github-bot
commented
May 19, 2019
nodejs-github-bot
commented
May 19, 2019
addaleax
commented
May 19, 2019
Landed in be26f6e, thanks for the PR! 🎉 (Changed the ommit message changed to begin with |
Fixes: #27199 PR-URL: #27325 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Fixes: #27199 PR-URL: #27325 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
about #27199
socket.addListenershould be the same behavior withsocket.onChecklist
make -j4 test(UNIX), orvcbuild test(Windows) passes