changeset 8726:55aabb7269e7 quic

HTTP/3: set initial_max_streams_uni default value to 3. The maximum number of HTTP/3 unidirectional client streams we can handle is 3: control, decode and encode. These streams are never closed.
author Roman Arutyunyan <arut@nginx.com>
date Mon, 22 Mar 2021 15:51:14 +0300
parents 98c4020f1c9a
children a64255c01dab
files src/http/modules/ngx_http_quic_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/modules/ngx_http_quic_module.c
+++ b/src/http/modules/ngx_http_quic_module.c
@@ -337,7 +337,7 @@ ngx_http_quic_merge_srv_conf(ngx_conf_t 
                               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,