diff options
author | Denys Otrishko <shishugi@gmail.com> | 2019-11-18 22:12:15 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-11-28 00:48:57 +0100 |
commit | 988034be6aece7bd103249e18ac7f0a5d3f92545 (patch) | |
tree | aaa2d24a4e27be44427c94dc9ffe80dfcf245a4e /doc | |
parent | 74f6bc70560aac981ac1b3019f628b81528a7053 (diff) | |
download | android-node-v8-988034be6aece7bd103249e18ac7f0a5d3f92545.tar.gz android-node-v8-988034be6aece7bd103249e18ac7f0a5d3f92545.tar.bz2 android-node-v8-988034be6aece7bd103249e18ac7f0a5d3f92545.zip |
http2: make maximum tolerated rejected streams configurable
PR-URL: https://github.com/nodejs/node/pull/30534
Fixes: https://github.com/nodejs/node/issues/30505
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/http2.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/api/http2.md b/doc/api/http2.md index 7ac4f6ffa1..c440b92a7d 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -1943,6 +1943,9 @@ added: v8.4.0 changes: - version: REPLACEME pr-url: https://github.com/nodejs/node/pull/30534 + description: Added `maxSessionRejectedStreams` option with a default of 100. + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/30534 description: Added `maxSessionInvalidFrames` option with a default of 1000. - version: v13.0.0 pr-url: https://github.com/nodejs/node/pull/29144 @@ -2007,6 +2010,12 @@ changes: * `maxSessionInvalidFrames` {integer} Sets the maximum number of invalid frames that will be tolerated before the session is closed. **Default:** `1000`. + * `maxSessionRejectedStreams` {integer} Sets the maximum number of rejected + upon creation streams that will be tolerated before the session is closed. + Each rejection is associated with an `NGHTTP2_ENHANCE_YOUR_CALM` + error that should tell the peer to not open any more streams, continuing + to open streams is therefore regarded as a sign of a misbehaving peer. + **Default:** `100`. * `settings` {HTTP/2 Settings Object} The initial settings to send to the remote peer upon connection. * `Http1IncomingMessage` {http.IncomingMessage} Specifies the @@ -2061,6 +2070,9 @@ added: v8.4.0 changes: - version: REPLACEME pr-url: https://github.com/nodejs/node/pull/30534 + description: Added `maxSessionRejectedStreams` option with a default of 100. + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/30534 description: Added `maxSessionInvalidFrames` option with a default of 1000. - version: v13.0.0 pr-url: https://github.com/nodejs/node/pull/29144 @@ -2125,6 +2137,12 @@ changes: * `maxSessionInvalidFrames` {integer} Sets the maximum number of invalid frames that will be tolerated before the session is closed. **Default:** `1000`. + * `maxSessionRejectedStreams` {integer} Sets the maximum number of rejected + upon creation streams that will be tolerated before the session is closed. + Each rejection is associated with an `NGHTTP2_ENHANCE_YOUR_CALM` + error that should tell the peer to not open any more streams, continuing + to open streams is therefore regarded as a sign of a misbehaving peer. + **Default:** `100`. * `settings` {HTTP/2 Settings Object} The initial settings to send to the remote peer upon connection. * ...: Any [`tls.createServer()`][] options can be provided. For |