]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: The number of concurrent streams is hardcoded in libh2o
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 6 Sep 2021 15:44:34 +0000 (17:44 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 13 Sep 2021 13:34:33 +0000 (15:34 +0200)
pdns/dnsdistdist/doh.cc

index 4441fea264588f67b1d7a4a3656d17814487e825..e90077db4ef6aa27c6755fb40656e2f1955f1e3b 100644 (file)
@@ -201,7 +201,13 @@ struct DOHServerConfig
 
     h2o_config_init(&h2o_config);
     h2o_config.http2.idle_timeout = idleTimeout * 1000;
-    // perhaps we should make h2o_config.http2.max_concurrent_requests_per_connection configurable (default is 100)
+    /* if you came here for a way to make the number of concurrent streams (concurrent requests per connection)
+       configurable, or even just bigger, I have bad news for you.
+       h2o_config.http2.max_concurrent_requests_per_connection (default of 100) is capped by
+       H2O_HTTP2_SETTINGS_HOST.max_concurrent_streams which is not configurable. Even if decided to change the
+       hard-coded value, libh2o's author warns that there might be parts of the code where the stream ID is stored
+       in 8 bits, making 256 a hard value: https://github.com/h2o/h2o/issues/805
+    */
   }
   DOHServerConfig(const DOHServerConfig&) = delete;
   DOHServerConfig& operator=(const DOHServerConfig&) = delete;