Skip to content

Commit 5db92e0

Browse files
authored
fix(ext/node): TLS emit close event on parent socket (#648)
1 parent 47773dd commit 5db92e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/node/polyfills/_tls_wrap.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ export class TLSSocket extends net.Socket {
105105
manualStart: true, // This prevents premature reading from TLS handle
106106
});
107107
if (socket) {
108+
this.on("close", () => this._parent?.emit("close"));
108109
this._parent = socket;
109110
}
110111
this._tlsOptions = tlsOptions;

0 commit comments

Comments
 (0)