From 321e37380dbf5e48f883943703eca2c674ebeed0 Mon Sep 17 00:00:00 2001 From: ZYSzys Date: Thu, 3 Oct 2019 23:07:42 +0800 Subject: [PATCH] http2: set default maxConcurrentStreams Set the default maxConcurrentStreams to NGHTTP2_DEFAULT_MAX_CONCURRENT_STREAMS. --- 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 ++ .../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 a204f53e3be45f..2759945970d3b0 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -2356,6 +2356,9 @@ server.on('stream', (stream, headers) => {