Skip to content
Permalink
Browse files
tls: remove unnecessary close listener
Wrapped streams are expected to behave the same as socket with handle.
Remove unnecessary difference in handling.

PR-URL: #34105
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
ronag authored and MylesBorins committed Jul 16, 2020
1 parent 9d30f05 commit fbcd1fa0f4a5892426c020bd5d13323ac38c64cc
Showing with 0 additions and 1 deletion.
  1. +0 −1 lib/_tls_wrap.js
@@ -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

0 comments on commit fbcd1fa

Please sign in to comment.