Skip to content

Commit ff537ba

Browse files
samuel871211richardlau
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 83b91ea commit ff537ba

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
@@ -2441,10 +2441,7 @@ added: v8.4.0
24412441

24422442
* `callback` {Function}
24432443

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

24492446
If `callback` is provided, it is not invoked until all active sessions have been
24502447
closed, although the server has already stopped allowing new sessions. See
@@ -2725,10 +2722,7 @@ added: v8.4.0
27252722

27262723
* `callback` {Function}
27272724

2728-
Stops the server from establishing new sessions. This does not prevent new
2729-
request streams from being created due to the persistent nature of HTTP/2
2730-
sessions. To gracefully shut down the server, call [`http2session.close()`][] on
2731-
all active sessions.
2725+
Stops the server from establishing new sessions and streams.
27322726

27332727
If `callback` is provided, it is not invoked until all active sessions have been
27342728
closed, although the server has already stopped allowing new sessions. See
@@ -5053,7 +5047,6 @@ you need to implement any fall-back behavior yourself.
50535047
[`http2.Server`]: #class-http2server
50545048
[`http2.createSecureServer()`]: #http2createsecureserveroptions-onrequesthandler
50555049
[`http2.createServer()`]: #http2createserveroptions-onrequesthandler
5056-
[`http2session.close()`]: #http2sessionclosecallback
50575050
[`http2stream.pushStream()`]: #http2streampushstreamheaders-options-callback
50585051
[`import()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import
50595052
[`net.Server.close()`]: net.md#serverclosecallback

0 commit comments

Comments
 (0)