From f0bee9b490e55ae93da1d1f8a485a4a432e61575 Mon Sep 17 00:00:00 2001 From: ZYSzys Date: Thu, 3 Oct 2019 23:07:42 +0800 Subject: 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 Reviewed-By: David Carlier Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat Reviewed-By: Colin Ihrig Reviewed-By: Anto Aravinth --- lib/internal/http2/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3