@@ -1939,6 +1939,9 @@ error will be thrown.
1939
1939
<!-- YAML
1940
1940
added: v8.4.0
1941
1941
changes:
1942
+ - version: REPLACEME
1943
+ pr-url: https://github.com/nodejs/node/pull/30534
1944
+ description: Added `maxSessionRejectedStreams` option with a default of 100.
1942
1945
- version: REPLACEME
1943
1946
pr-url: https://github.com/nodejs/node/pull/30534
1944
1947
description: Added `maxSessionInvalidFrames` option with a default of 1000.
@@ -2005,6 +2008,12 @@ changes:
2005
2008
* ` maxSessionInvalidFrames ` {integer} Sets the maximum number of invalid
2006
2009
frames that will be tolerated before the session is closed.
2007
2010
** 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 ` .
2008
2017
* ` selectPadding ` {Function} When ` options.paddingStrategy ` is equal to
2009
2018
` http2.constants.PADDING_STRATEGY_CALLBACK ` , provides the callback function
2010
2019
used to determine the padding. See [ Using ` options.selectPadding() ` ] [ ] .
@@ -2060,6 +2069,9 @@ server.listen(80);
2060
2069
<!-- YAML
2061
2070
added: v8.4.0
2062
2071
changes:
2072
+ - version: REPLACEME
2073
+ pr-url: https://github.com/nodejs/node/pull/30534
2074
+ description: Added `maxSessionRejectedStreams` option with a default of 100.
2063
2075
- version: REPLACEME
2064
2076
pr-url: https://github.com/nodejs/node/pull/30534
2065
2077
description: Added `maxSessionInvalidFrames` option with a default of 1000.
@@ -2126,6 +2138,12 @@ changes:
2126
2138
* ` maxSessionInvalidFrames ` {integer} Sets the maximum number of invalid
2127
2139
frames that will be tolerated before the session is closed.
2128
2140
** 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 ` .
2129
2147
* ` selectPadding ` {Function} When ` options.paddingStrategy ` is equal to
2130
2148
` http2.constants.PADDING_STRATEGY_CALLBACK ` , provides the callback function
2131
2149
used to determine the padding. See [ Using ` options.selectPadding() ` ] [ ] .
0 commit comments