]> git.kaiwu.me - nginx.git/commitdiff
HTTP/3: set initial_max_streams_uni default value to 3.
authorRoman Arutyunyan <arut@nginx.com>
Mon, 22 Mar 2021 12:51:14 +0000 (15:51 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Mon, 22 Mar 2021 12:51:14 +0000 (15:51 +0300)
The maximum number of HTTP/3 unidirectional client streams we can handle is 3:
control, decode and encode.  These streams are never closed.

src/http/modules/ngx_http_quic_module.c

index 8106e3e0a53efa22f2fb5542d91523f7c5261001..5282bf4bbacc6fcaa25c5068a659efc218680a7c 100644 (file)
@@ -337,7 +337,7 @@ ngx_http_quic_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child)
                               prev->tp.initial_max_streams_bidi, 16);
 
     ngx_conf_merge_uint_value(conf->tp.initial_max_streams_uni,
-                              prev->tp.initial_max_streams_uni, 16);
+                              prev->tp.initial_max_streams_uni, 3);
 
     ngx_conf_merge_uint_value(conf->tp.ack_delay_exponent,
                               prev->tp.ack_delay_exponent,