doc: fix sentence about Http2Stream destruction
PR-URL: https://github.com/nodejs/node/pull/28336 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
c81062a908
commit
6f5b5d1c4b
@ -913,7 +913,7 @@ All [`Http2Stream`][] instances are destroyed either when:
|
|||||||
* The `http2stream.destroy()` or `http2session.destroy()` methods are called.
|
* The `http2stream.destroy()` or `http2session.destroy()` methods are called.
|
||||||
|
|
||||||
When an `Http2Stream` instance is destroyed, an attempt will be made to send an
|
When an `Http2Stream` instance is destroyed, an attempt will be made to send an
|
||||||
`RST_STREAM` frame will be sent to the connected peer.
|
`RST_STREAM` frame to the connected peer.
|
||||||
|
|
||||||
When the `Http2Stream` instance is destroyed, the `'close'` event will
|
When the `Http2Stream` instance is destroyed, the `'close'` event will
|
||||||
be emitted. Because `Http2Stream` is an instance of `stream.Duplex`, the
|
be emitted. Because `Http2Stream` is an instance of `stream.Duplex`, the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user