Skip to content

Commit d5679f4

Browse files
authored
doc: update Http2Server.close & Http2SecureServer.close
Signed-off-by: Yu-Sheng Chen <samuel871211@gmail.com> PR-URL: #63298 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tim Perry <pimterry@gmail.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent 242f2e7 commit d5679f4

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

24802480
* `callback` {Function}
24812481

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

24872484
If `callback` is provided, it is not invoked until all active sessions have been
24882485
closed, although the server has already stopped allowing new sessions. See
@@ -2763,10 +2760,7 @@ added: v8.4.0
27632760

27642761
* `callback` {Function}
27652762

2766-
Stops the server from establishing new sessions. This does not prevent new
2767-
request streams from being created due to the persistent nature of HTTP/2
2768-
sessions. To gracefully shut down the server, call [`http2session.close()`][] on
2769-
all active sessions.
2763+
Stops the server from establishing new sessions and streams.
27702764

27712765
If `callback` is provided, it is not invoked until all active sessions have been
27722766
closed, although the server has already stopped allowing new sessions. See
@@ -5106,7 +5100,6 @@ you need to implement any fall-back behavior yourself.
51065100
[`http2.Server`]: #class-http2server
51075101
[`http2.createSecureServer()`]: #http2createsecureserveroptions-onrequesthandler
51085102
[`http2.createServer()`]: #http2createserveroptions-onrequesthandler
5109-
[`http2session.close()`]: #http2sessionclosecallback
51105103
[`http2stream.pushStream()`]: #http2streampushstreamheaders-options-callback
51115104
[`import()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import
51125105
[`net.Server.close()`]: net.md#serverclosecallback

0 commit comments

Comments
 (0)