Skip to content

Commit

Permalink
doc: socket passed to tls.connect is user managed
Browse files Browse the repository at this point in the history
Replace nodejs#8996
  • Loading branch information
sam-github committed Dec 9, 2016
1 parent 43b8c9e commit c94b954
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/api/tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,11 @@ added: v0.11.3
specified, `host` and `port` are ignored.
* `socket` {net.Socket} Establish secure connection on a given socket rather
than creating a new socket. If this option is specified, `path`, `host` and
`port` are ignored.
`port` are ignored. Usually, a socket is already connected when passed to
`tls.connect()`, but it can be connected later. Note that
connection/disconnection/destruction of `socket` is the user's
responsibility, calling `tls.connect()` will not cause `net.connect()` to be
called.
* `pfx` {string|Buffer} A string or `Buffer` containing the private key,
certificate, and CA certs of the client in PFX or PKCS12 format.
* `key` {string|string[]|Buffer|Buffer[]} A string, `Buffer`, array of
Expand Down

0 comments on commit c94b954

Please sign in to comment.