-
Notifications
You must be signed in to change notification settings - Fork 7.3k
tls: do not hang without newSession
handler
#25739
Conversation
When listening for client hello parser events (like OCSP requests), do not hang if `newSession` event handler is not present. Fix: nodejs#8660 Fix: nodejs#25735 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> PR-URL: node-forward/node#47
cc @joyent/node-collaborators |
}); | ||
|
||
// Should not be actually called | ||
server.on('resumeSession', function (id, callback) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use common.mustCall(function() {}, 0)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Can we get some action on this - it's a pressing concern for us. |
@sam-github it is effectively a backport from io.js, except the new test case. @sam-github should I just land the PR by hand as we do in io.js? |
@sam-github simply adding a listener doesn't work since we use |
@indutny you've committed way more to joyent/node than I have! I don't think the procedure is changed much from when you were working all the time over here, but I don't recall from the onboarding, and can't find anything specific to how to land in https://nodejs.org/contribute/code_contributions/workflow.html |
Cancelled that CI job, new one is:http://jenkins.nodejs.org/job/node-accept-pull-request/160/ |
Thanks @sam-github figured it out with @misterdjules |
Looks like it landed in v0.12. |
When listening for client hello parser events (like OCSP requests), do not hang if `newSession` event handler is not present. Fix: nodejs#8660 Fix: nodejs#25735 Reviewed-By: Fedor Indutny <fedor@indutny.com> PR-URL: nodejs#25739
See: nodejs#25736 Reviewed-By: Fedor Indutny <fedor@indutny.com> PR-URL: nodejs#25739
Reviewed-By: Fedor Indutny <fedor@indutny.com> PR-URL: nodejs#25739
When listening for client hello parser events (like OCSP requests), do
not hang if
newSession
event handler is not present.