@@ -1941,6 +1941,9 @@ error will be thrown.
19411941<!-- YAML
19421942added: v8.4.0
19431943changes:
1944+ - version: REPLACEME
1945+ pr-url: https://github.com/nodejs/node/pull/30534
1946+ description: Added `maxSessionRejectedStreams` option with a default of 100.
19441947 - version: REPLACEME
19451948 pr-url: https://github.com/nodejs/node/pull/30534
19461949 description: Added `maxSessionInvalidFrames` option with a default of 1000.
@@ -2007,6 +2010,12 @@ changes:
20072010 * ` maxSessionInvalidFrames ` {integer} Sets the maximum number of invalid
20082011 frames that will be tolerated before the session is closed.
20092012 ** Default:** ` 1000 ` .
2013+ * ` maxSessionRejectedStreams ` {integer} Sets the maximum number of rejected
2014+ upon creation streams that will be tolerated before the session is closed.
2015+ Each rejection is associated with an ` NGHTTP2_ENHANCE_YOUR_CALM `
2016+ error that should tell the peer to not open any more streams, continuing
2017+ to open streams is therefore regarded as a sign of a misbehaving peer.
2018+ ** Default:** ` 100 ` .
20102019 * ` settings ` {HTTP/2 Settings Object} The initial settings to send to the
20112020 remote peer upon connection.
20122021 * ` Http1IncomingMessage ` {http.IncomingMessage} Specifies the
@@ -2059,6 +2068,9 @@ server.listen(80);
20592068<!-- YAML
20602069added: v8.4.0
20612070changes:
2071+ - version: REPLACEME
2072+ pr-url: https://github.com/nodejs/node/pull/30534
2073+ description: Added `maxSessionRejectedStreams` option with a default of 100.
20622074 - version: REPLACEME
20632075 pr-url: https://github.com/nodejs/node/pull/30534
20642076 description: Added `maxSessionInvalidFrames` option with a default of 1000.
@@ -2125,6 +2137,12 @@ changes:
21252137 * ` maxSessionInvalidFrames ` {integer} Sets the maximum number of invalid
21262138 frames that will be tolerated before the session is closed.
21272139 ** Default:** ` 1000 ` .
2140+ * ` maxSessionRejectedStreams ` {integer} Sets the maximum number of rejected
2141+ upon creation streams that will be tolerated before the session is closed.
2142+ Each rejection is associated with an ` NGHTTP2_ENHANCE_YOUR_CALM `
2143+ error that should tell the peer to not open any more streams, continuing
2144+ to open streams is therefore regarded as a sign of a misbehaving peer.
2145+ ** Default:** ` 100 ` .
21282146 * ` settings ` {HTTP/2 Settings Object} The initial settings to send to the
21292147 remote peer upon connection.
21302148 * ...: Any [ ` tls.createServer() ` ] [ ] options can be provided. For
0 commit comments