doc: update Http2SecureServer.on("timeout") default value

Signed-off-by: YuSheng Chen <samuel871211@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/64187
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
This commit is contained in:
YuSheng Chen authored and Antoine du Hamel committed 2026-07-30 13:51:47 +02:00
1 parent af9ea9cfcf
commit bc943cd34a
1 file changed
+5 -1
+5 -1
View File
@@ -2669,11 +2669,15 @@ server.on('stream', (stream, headers, flags) => {
<!-- YAML
added: v8.4.0
changes:
- version: v13.0.0
pr-url: https://github.com/nodejs/node/pull/27558
description: The default timeout changed from 120s to 0 (no timeout).
-->
The `'timeout'` event is emitted when there is no activity on the Server for
a given number of milliseconds set using `http2secureServer.setTimeout()`.
**Default:** 2 minutes.
**Default:** 0 (no timeout)
#### Event: `'unknownProtocol'`