Skip to content

Commit 9238b34

Browse files
samuel871211aduh95
authored andcommitted
doc: update Http2Server.close & Http2SecureServer.close
Signed-off-by: Yu-Sheng Chen <[email protected]> PR-URL: #63298 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Tim Perry <[email protected]> Reviewed-By: Ethan Arrowood <[email protected]> Reviewed-By: Ulises Gascón <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
1 parent 439694d commit 9238b34

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

doc/api/http2.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2431,10 +2431,7 @@ added: v8.4.0
24312431

24322432
* `callback` {Function}
24332433

2434-
Stops the server from establishing new sessions. This does not prevent new
2435-
request streams from being created due to the persistent nature of HTTP/2
2436-
sessions. To gracefully shut down the server, call [`http2session.close()`][] on
2437-
all active sessions.
2434+
Stops the server from establishing new sessions and streams.
24382435

24392436
If `callback` is provided, it is not invoked until all active sessions have been
24402437
closed, although the server has already stopped allowing new sessions. See
@@ -2715,10 +2712,7 @@ added: v8.4.0
27152712

27162713
* `callback` {Function}
27172714

2718-
Stops the server from establishing new sessions. This does not prevent new
2719-
request streams from being created due to the persistent nature of HTTP/2
2720-
sessions. To gracefully shut down the server, call [`http2session.close()`][] on
2721-
all active sessions.
2715+
Stops the server from establishing new sessions and streams.
27222716

27232717
If `callback` is provided, it is not invoked until all active sessions have been
27242718
closed, although the server has already stopped allowing new sessions. See
@@ -5043,7 +5037,6 @@ you need to implement any fall-back behavior yourself.
50435037
[`http2.Server`]: #class-http2server
50445038
[`http2.createSecureServer()`]: #http2createsecureserveroptions-onrequesthandler
50455039
[`http2.createServer()`]: #http2createserveroptions-onrequesthandler
5046-
[`http2session.close()`]: #http2sessionclosecallback
50475040
[`http2stream.pushStream()`]: #http2streampushstreamheaders-options-callback
50485041
[`import()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import
50495042
[`net.Server.close()`]: net.md#serverclosecallback

0 commit comments

Comments
 (0)