tls: do not hang without `newSession` handler
authorFedor Indutny <fedor@indutny.com>
Tue, 4 Nov 2014 16:14:55 +0000 (11:14 -0500)
committerFedor Indutny <fedor@indutny.com>
Thu, 20 Nov 2014 15:14:57 +0000 (18:14 +0300)
commit963f5e8a886841d69e79fdc46aaa0010126408e8
treeaad68636a04adc8e488d25664eaa43f846205d3b
parentf8076c40672d6317d8c2e1259b5d23235156cd99
tls: do not hang without `newSession` handler

When listening for client hello parser events (like OCSP requests), do
not hang if `newSession` event handler is not present.

fix joyent/node#8660
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
PR-URL: https://github.com/node-forward/node/pull/47
lib/_tls_legacy.js
lib/_tls_wrap.js
test/simple/test-tls-ocsp-callback.js