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 --- doc/api/http2.md | 8 ++++++-- lib/internal/http2/core.js | 2 +- src/node_http2.cc | 4 ++++ src/node_http2.h | 1 + test/parallel/test-http2-binding.js | 2 ++ .../parallel/test-http2-client-setNextStreamID-errors.js | 4 ++-- .../test-http2-client-settings-before-connect.js | 2 +- test/parallel/test-http2-getpackedsettings.js | 16 ++-------------- 8 files changed, 19 insertions(+), 20 deletions(-) diff --git a/doc/api/http2.md b/doc/api/http2.md index 03d3ff21a8..d2837019bb 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -2356,6 +2356,9 @@ server.on('stream', (stream, headers) => {