From 8d9ac753996687a7ab61efa0d51c9fcf03a5da87 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 1e404e7b5bfdeb..d31d401fdbdaf9 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -1126,9 +1126,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`.