summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZYSzys <zyszys98@gmail.com>2019-10-03 23:07:42 +0800
committerZYSzys <zyszys98@gmail.com>2019-10-05 23:51:03 +0800
commitf0bee9b490e55ae93da1d1f8a485a4a432e61575 (patch)
treeb96d6599cbe718f73538d729ed0a85b36c08f24d /lib
parent24011de9071fcd092fab29719d3fa8269a95288a (diff)
downloadandroid-node-v8-f0bee9b490e55ae93da1d1f8a485a4a432e61575.tar.gz
android-node-v8-f0bee9b490e55ae93da1d1f8a485a4a432e61575.tar.bz2
android-node-v8-f0bee9b490e55ae93da1d1f8a485a4a432e61575.zip
http2: set default maxConcurrentStreams
Set the default maxConcurrentStreams to NGHTTP2_DEFAULT_MAX_CONCURRENT_STREAMS. PR-URL: https://github.com/nodejs/node/pull/29833 Fixes: https://github.com/nodejs/node/issues/29763 Refs: https://github.com/nghttp2/nghttp2/commit/16c46114dc724278beaa6d59462f8396f35fa4a9 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/internal/http2/core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/http2/core.js b/lib/internal/http2/core.js
index c1de71c955..2d34e24a73 100644
--- a/lib/internal/http2/core.js
+++ b/lib/internal/http2/core.js
@@ -160,7 +160,7 @@ function debugSessionObj(session, message, ...args) {
const kMaxFrameSize = (2 ** 24) - 1;
const kMaxInt = (2 ** 32) - 1;
-const kMaxStreams = (2 ** 31) - 1;
+const kMaxStreams = (2 ** 32) - 1;
const kMaxALTSVC = (2 ** 14) - 2;
// eslint-disable-next-line no-control-regex