@@ -1941,6 +1941,9 @@ error will be thrown.
1941
1941
<!-- YAML
1942
1942
added: v8.4.0
1943
1943
changes:
1944
+ - version: REPLACEME
1945
+ pr-url: https://github.com/nodejs/node/pull/30534
1946
+ description: Added `maxSessionRejectedStreams` option with a default of 100.
1944
1947
- version: REPLACEME
1945
1948
pr-url: https://github.com/nodejs/node/pull/30534
1946
1949
description: Added `maxSessionInvalidFrames` option with a default of 1000.
@@ -2007,6 +2010,12 @@ changes:
2007
2010
* ` maxSessionInvalidFrames ` {integer} Sets the maximum number of invalid
2008
2011
frames that will be tolerated before the session is closed.
2009
2012
** 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 ` .
2010
2019
* ` settings ` {HTTP/2 Settings Object} The initial settings to send to the
2011
2020
remote peer upon connection.
2012
2021
* ` Http1IncomingMessage ` {http.IncomingMessage} Specifies the
@@ -2059,6 +2068,9 @@ server.listen(80);
2059
2068
<!-- YAML
2060
2069
added: v8.4.0
2061
2070
changes:
2071
+ - version: REPLACEME
2072
+ pr-url: https://github.com/nodejs/node/pull/30534
2073
+ description: Added `maxSessionRejectedStreams` option with a default of 100.
2062
2074
- version: REPLACEME
2063
2075
pr-url: https://github.com/nodejs/node/pull/30534
2064
2076
description: Added `maxSessionInvalidFrames` option with a default of 1000.
@@ -2125,6 +2137,12 @@ changes:
2125
2137
* ` maxSessionInvalidFrames ` {integer} Sets the maximum number of invalid
2126
2138
frames that will be tolerated before the session is closed.
2127
2139
** 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 ` .
2128
2146
* ` settings ` {HTTP/2 Settings Object} The initial settings to send to the
2129
2147
remote peer upon connection.
2130
2148
* ...: Any [ ` tls.createServer() ` ] [ ] options can be provided. For
0 commit comments