Skip to content

Conversation

@apapirovski
Copy link
Contributor

Properly handle prependListener wrapping on http server socket, in addition to on and addListener. (A commit was made that was supposed to fix this last month but hadn't actually done so.)

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

Properly handle prependListener wrapping on http server socket, in addition to on and addListener.
@nodejs-github-bot
Copy link
Collaborator

socket.addListener=socket.on;
socket.on=generateSocketListenerWrapper('on');
socket.addListener=generateSocketListenerWrapper('addListener');
socket.prependListener=generateSocketListenerWrapper('prependListener');
Copy link
Member

Choose a reason for hiding this comment

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

Maybe also add addListener and prependListener to the comment for clarify ?

@ZYSzysZYSzys added the http Issues or PRs related to the http subsystem. label May 30, 2019
@nodejs-github-bot
Copy link
Collaborator

@Trott
Copy link
Member

Trott commented Jun 2, 2019

Landed in 58b1fe7

@TrottTrott closed this Jun 2, 2019
Trott pushed a commit to Trott/io.js that referenced this pull request Jun 2, 2019
Properly handle prependListener wrapping on http server socket, in addition to on and addListener. PR-URL: nodejs#27968 Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Rich Trott <[email protected]>
@apapirovskiapapirovski deleted the fix-socket-wrap-http branch June 2, 2019 17:20
targos pushed a commit that referenced this pull request Jun 3, 2019
Properly handle prependListener wrapping on http server socket, in addition to on and addListener. PR-URL: #27968 Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Rich Trott <[email protected]>
@targostargos mentioned this pull request Jun 3, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

httpIssues or PRs related to the http subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@apapirovski@nodejs-github-bot@Trott@lpinca@ZYSzys