From ff537ba858a6417362fa6a6529d2a0486739caaa Mon Sep 17 00:00:00 2001 From: YuSheng Chen Date: Mon, 29 Jun 2026 16:48:48 +0800 Subject: [PATCH] doc: update `Http2Server.close` & `Http2SecureServer.close` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Yu-Sheng Chen PR-URL: https://github.com/nodejs/node/pull/63298 Reviewed-By: Luigi Pinca Reviewed-By: Tim Perry Reviewed-By: Ethan Arrowood Reviewed-By: Ulises Gascón Reviewed-By: Matteo Collina --- doc/api/http2.md | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/doc/api/http2.md b/doc/api/http2.md index 581b7b48a4b..0d2e9afabaf 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -2441,10 +2441,7 @@ added: v8.4.0 * `callback` {Function} -Stops the server from establishing new sessions. This does not prevent new -request streams from being created due to the persistent nature of HTTP/2 -sessions. To gracefully shut down the server, call [`http2session.close()`][] on -all active sessions. +Stops the server from establishing new sessions and streams. If `callback` is provided, it is not invoked until all active sessions have been closed, although the server has already stopped allowing new sessions. See @@ -2725,10 +2722,7 @@ added: v8.4.0 * `callback` {Function} -Stops the server from establishing new sessions. This does not prevent new -request streams from being created due to the persistent nature of HTTP/2 -sessions. To gracefully shut down the server, call [`http2session.close()`][] on -all active sessions. +Stops the server from establishing new sessions and streams. If `callback` is provided, it is not invoked until all active sessions have been closed, although the server has already stopped allowing new sessions. See @@ -5053,7 +5047,6 @@ you need to implement any fall-back behavior yourself. [`http2.Server`]: #class-http2server [`http2.createSecureServer()`]: #http2createsecureserveroptions-onrequesthandler [`http2.createServer()`]: #http2createserveroptions-onrequesthandler -[`http2session.close()`]: #http2sessionclosecallback [`http2stream.pushStream()`]: #http2streampushstreamheaders-options-callback [`import()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import [`net.Server.close()`]: net.md#serverclosecallback