mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
Ensure that the `'close'` event is emitted on a `TLSSocket` when it is created from an existing raw `net.Socket` and the raw socket is not closed cleanly (destroyed). Refs: https://github.com/nodejs/node/commit/048e0bec5147 Refs: https://github.com/nodejs/node/issues/49902#issuecomment-1741203813 Fixes: https://github.com/nodejs/node/issues/49902 PR-URL: https://github.com/nodejs/node/pull/49980 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>