diff options
author | Malte-Thorben Bruns <skenqbx@gmail.com> | 2015-05-22 21:12:59 +0200 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2015-05-22 21:30:22 +0200 |
commit | 2a71f02988244b6299db8fe8ba3cc0491793acfc (patch) | |
tree | ab902f89347410a9b6e429db2827d5af00e61a9d /benchmark | |
parent | 2bb2f06b3e53ca44687afdaa9b833e0b6181ff76 (diff) | |
download | node-new-2a71f02988244b6299db8fe8ba3cc0491793acfc.tar.gz |
tls: emit errors happening before handshake finish
This fixes a race condition introduced in 80342f6.
`socket.destroy(err)` only emits the passed error when
`socket._writableState.errorEmitted === false`, `ssl.onerror`
sets `errorEmitted = true` just before calling
`socket.destroy()`.
See: https://github.com/nodejs/io.js/issues/1119
See: https://github.com/nodejs/io.js/issues/1711
PR-URL: https://github.com/nodejs/io.js/pull/1769
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Diffstat (limited to 'benchmark')
0 files changed, 0 insertions, 0 deletions