mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
tls: remove unnecessary close listener
Wrapped streams are expected to behave the same as socket with handle. Remove unnecessary difference in handling. PR-URL: https://github.com/nodejs/node/pull/34105 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
1 parent
9d30f0542c
commit
fbcd1fa0f4
1 file changed
-1
@@ -490,7 +490,6 @@ function TLSSocket(socket, opts) {
|
||||
// handle, but a JS stream doesn't have one. Wrap it up to make it look like
|
||||
// a socket.
|
||||
wrap = new JSStreamSocket(socket);
|
||||
wrap.once('close', () => this.destroy());
|
||||
}
|
||||
|
||||
// Just a documented property to make secure sockets
|
||||
|
||||
Reference in new issue
Block a user