@@ -1939,6 +1939,9 @@ error will be thrown.
19391939<!-- YAML
19401940added: v8.4.0
19411941changes:
1942+ - version: REPLACEME
1943+ pr-url: https://github.com/nodejs/node/pull/30534
1944+ description: Added `maxSessionRejectedStreams` option with a default of 100.
19421945 - version: REPLACEME
19431946 pr-url: https://github.com/nodejs/node/pull/30534
19441947 description: Added `maxSessionInvalidFrames` option with a default of 1000.
@@ -2005,6 +2008,12 @@ changes:
20052008 * `maxSessionInvalidFrames` {integer} Sets the maximum number of invalid
20062009 frames that will be tolerated before the session is closed.
20072010 **Default:** `1000`.
2011+ * `maxSessionRejectedStreams` {integer} Sets the maximum number of rejected
2012+ upon creation streams that will be tolerated before the session is closed.
2013+ Each rejection is associated with an `NGHTTP2_ENHANCE_YOUR_CALM`
2014+ error that should tell the peer to not open any more streams, continuing
2015+ to open streams is therefore regarded as a sign of a misbehaving peer.
2016+ **Default:** `100`.
20082017 * `selectPadding` {Function} When `options.paddingStrategy` is equal to
20092018 `http2.constants.PADDING_STRATEGY_CALLBACK`, provides the callback function
20102019 used to determine the padding. See [Using `options.selectPadding()`][].
@@ -2060,6 +2069,9 @@ server.listen(80);
20602069<!-- YAML
20612070added: v8.4.0
20622071changes:
2072+ - version: REPLACEME
2073+ pr-url: https://github.com/nodejs/node/pull/30534
2074+ description: Added `maxSessionRejectedStreams` option with a default of 100.
20632075 - version: REPLACEME
20642076 pr-url: https://github.com/nodejs/node/pull/30534
20652077 description: Added `maxSessionInvalidFrames` option with a default of 1000.
@@ -2126,6 +2138,12 @@ changes:
21262138 * `maxSessionInvalidFrames` {integer} Sets the maximum number of invalid
21272139 frames that will be tolerated before the session is closed.
21282140 **Default:** `1000`.
2141+ * `maxSessionRejectedStreams` {integer} Sets the maximum number of rejected
2142+ upon creation streams that will be tolerated before the session is closed.
2143+ Each rejection is associated with an `NGHTTP2_ENHANCE_YOUR_CALM`
2144+ error that should tell the peer to not open any more streams, continuing
2145+ to open streams is therefore regarded as a sign of a misbehaving peer.
2146+ **Default:** `100`.
21292147 * `selectPadding` {Function} When `options.paddingStrategy` is equal to
21302148 `http2.constants.PADDING_STRATEGY_CALLBACK`, provides the callback function
21312149 used to determine the padding. See [Using `options.selectPadding()`][].
0 commit comments