]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
h2: bootstrap max streams from multi handle if in use
authorCatboxParadox <CatboxParadox@users.noreply.github.com>
Tue, 28 Jul 2026 12:12:09 +0000 (14:12 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 29 Jul 2026 11:51:55 +0000 (13:51 +0200)
Closes #22418

lib/http2.c

index b8733d8ec12792471f53c893ee12ad1c02ef2322..08dfb6d919730a7d0b8f1f8c5c15bc89071f5e8b 100644 (file)
@@ -2412,7 +2412,9 @@ static CURLcode cf_h2_ctx_open(struct Curl_cfilter *cf,
     failf(data, "Could not initialize nghttp2");
     goto out;
   }
-  ctx->max_concurrent_streams = DEFAULT_MAX_CONCURRENT_STREAMS;
+  ctx->max_concurrent_streams = data->multi ?
+    Curl_multi_max_concurrent_streams(data->multi) :
+    DEFAULT_MAX_CONCURRENT_STREAMS;
 
   if(ctx->via_h1_upgrade) {
     /* HTTP/1.1 Upgrade issued. H2 Settings have already been submitted