@@ -1730,6 +1730,10 @@ changes:
17301730 ** Default:** ` 1024 ` .
17311731 * ` highWaterMark ` {number} Consistent with the readable stream ` highWaterMark ` parameter.
17321732 ** Default:** ` 16 * 1024 ` .
1733+ * ` timeout ` {number} Sets the socket to timeout after ` timeout ` milliseconds
1734+ of inactivity. By default, no timeout is set. This option is supported
1735+ because ` tls.connect() ` internally uses [ ` net.createConnection() ` ] [ ]
1736+ and is equivalent to calling [ ` socket.setTimeout() ` ] [ ] on the returned socket.
17331737 * ` secureContext ` : TLS context object created with
17341738 [ ` tls.createSecureContext() ` ] [ ] . If a ` secureContext ` is _ not_ provided, one
17351739 will be created by passing the entire ` options ` object to
@@ -1740,7 +1744,7 @@ changes:
17401744 ` onread ` option of [ ` net.Socket ` ] [ ] for details.
17411745 * ...: [ ` tls.createSecureContext() ` ] [ ] options that are used if the
17421746 ` secureContext ` option is missing, otherwise they are ignored.
1743- * ...: Any [ ` socket.connect ()` ] [ ] option not already listed.
1747+ * ...: Any [ ` net.createConnection ()` ] [ ] option not already listed.
17441748* ` callback ` {Function}
17451749* Returns: {tls.TLSSocket}
17461750
@@ -2473,12 +2477,13 @@ added: v0.11.3
24732477[ `net.Server.address()` ] : net.md#serveraddress
24742478[ `net.Server` ] : net.md#class-netserver
24752479[ `net.Socket` ] : net.md#class-netsocket
2480+ [ `net.createConnection()` ] : https://nodejs.org/api/net.html#net_net_createconnection_options_callback
24762481[ `net.createServer()` ] : net.md#netcreateserveroptions-connectionlistener
24772482[ `server.addContext()` ] : #serveraddcontexthostname-context
24782483[ `server.getTicketKeys()` ] : #servergetticketkeys
24792484[ `server.listen()` ] : net.md#serverlisten
24802485[ `server.setTicketKeys()` ] : #serversetticketkeyskeys
2481- [ `socket.connect ()` ] : net.md#socketconnectoptions-connectlistener
2486+ [ `socket.setTimeout ()` ] : https://nodejs.org/api/ net.html#socketsettimeouttimeout-callback
24822487[ `tls.DEFAULT_ECDH_CURVE` ] : #tlsdefault_ecdh_curve
24832488[ `tls.DEFAULT_MAX_VERSION` ] : #tlsdefault_max_version
24842489[ `tls.DEFAULT_MIN_VERSION` ] : #tlsdefault_min_version
0 commit comments