summaryrefslogtreecommitdiff
path: root/src/util-inl.h
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2016-10-01 21:17:51 +0200
committerJeremiah Senkpiel <fishrock123@rocketmail.com>2016-10-11 12:30:51 -0400
commitbee1955f4e3eaaafcf2cb22ab33ff0a69b27bbc8 (patch)
tree47f702e1e3cda04863e21802def76936e3c2a7f9 /src/util-inl.h
parentc36c8dc3cc89a136cf39a2d09c3f1e5895bd2d69 (diff)
downloadnode-new-bee1955f4e3eaaafcf2cb22ab33ff0a69b27bbc8.tar.gz
tls: handle `error` events with `_tlsError`
Previously `TLSSocket#_emitTLSError` was used as an `error` event handler. However that function can emit `error` event itself, so it is not suitable for such use. Luckily the event can be emitted only when the control is released, so this looping-error can't happen. Replace the error handler for clarity and correctness. PR-URL: https://github.com/nodejs/node/pull/8889 Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/util-inl.h')
0 files changed, 0 insertions, 0 deletions