From a9b6589872d39f65177f88713fa1d614b0d0dc11 Mon Sep 17 00:00:00 2001 From: yusheng Date: Thu, 14 May 2026 11:37:27 +0800 Subject: [PATCH] doc: update `Http2Server.close` & `Http2SecureServer.close` Signed-off-by: Yu-Sheng Chen --- doc/api/http2.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/doc/api/http2.md b/doc/api/http2.md index dcba89fcedec6d..1c85f04af966f6 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -2437,10 +2437,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 @@ -2721,10 +2718,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