From 14809aaa98b92a8dc29bc387753768499df06211 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 11 Mar 2018 17:30:56 -0700 Subject: [PATCH] doc: clarify default TLS handshake timeout Because the `handshakeTimeout` is in milliseconds, use that unit of measurement to express the default value. PR-URL: https://github.com/nodejs/node/pull/19290 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- doc/api/tls.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/tls.md b/doc/api/tls.md index d3f3fdadff18af..cff01013c12dfe 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -1127,9 +1127,9 @@ changes: * `clientCertEngine` {string} Optional name of an OpenSSL engine which can provide the client certificate. * `handshakeTimeout` {number} Abort the connection if the SSL/TLS handshake - does not finish in the specified number of milliseconds. Defaults to `120` - seconds. A `'tlsClientError'` is emitted on the `tls.Server` object whenever - a handshake times out. + does not finish in the specified number of milliseconds. Defaults to + `120000` (120 seconds). A `'tlsClientError'` is emitted on the `tls.Server` + object whenever a handshake times out. * `requestCert` {boolean} If `true` the server will request a certificate from clients that connect and attempt to verify that certificate. Defaults to `false`.