From c124e6b3c04bfd254e24312bc66c2bc9db919442 Mon Sep 17 00:00:00 2001 From: Kunal Ekawde Date: Tue, 24 Sep 2019 08:56:11 -0400 Subject: CURLMOPT_MAX_CONCURRENT_STREAMS: new setopt Closes #4410 --- lib/http2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/http2.c') diff --git a/lib/http2.c b/lib/http2.c index 98ea90358..d2f5da17a 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -1159,7 +1159,7 @@ static void populate_settings(struct connectdata *conn, nghttp2_settings_entry *iv = httpc->local_settings; iv[0].settings_id = NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS; - iv[0].value = 100; + iv[0].value = (uint32_t)Curl_multi_max_concurrent_streams(conn->data->multi); iv[1].settings_id = NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE; iv[1].value = HTTP2_HUGE_WINDOW_SIZE; -- cgit v1.2.3