Skip to content

Commit 14809aa

Browse files
committed
doc: clarify default TLS handshake timeout
Because the `handshakeTimeout` is in milliseconds, use that unit of measurement to express the default value. PR-URL: #19290 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 4ae320f commit 14809aa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

doc/api/tls.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,9 +1127,9 @@ changes:
11271127
* `clientCertEngine` {string} Optional name of an OpenSSL engine which can
11281128
provide the client certificate.
11291129
* `handshakeTimeout` {number} Abort the connection if the SSL/TLS handshake
1130-
does not finish in the specified number of milliseconds. Defaults to `120`
1131-
seconds. A `'tlsClientError'` is emitted on the `tls.Server` object whenever
1132-
a handshake times out.
1130+
does not finish in the specified number of milliseconds. Defaults to
1131+
`120000` (120 seconds). A `'tlsClientError'` is emitted on the `tls.Server`
1132+
object whenever a handshake times out.
11331133
* `requestCert` {boolean} If `true` the server will request a certificate from
11341134
clients that connect and attempt to verify that certificate. Defaults to
11351135
`false`.

0 commit comments

Comments
 (0)