diff options
author | Vladimir Homutov <vl@nginx.com> | 2021-12-06 15:19:54 +0300 |
---|---|---|
committer | Vladimir Homutov <vl@nginx.com> | 2021-12-06 15:19:54 +0300 |
commit | 0791b508807eac65681c9c33d27acece67a9a421 (patch) | |
tree | 291c7bae689b2ec757c09a6764790de122cbd66a /src/http/v3/ngx_http_v3_streams.c | |
parent | 835854520a07adf6e3bedfad486a92cecdcd33ac (diff) | |
download | nginx-0791b508807eac65681c9c33d27acece67a9a421.tar.gz nginx-0791b508807eac65681c9c33d27acece67a9a421.zip |
QUIC: simplified configuration.
Directives that set transport parameters are removed from the configuration.
Corresponding values are derived from the quic configuration or initialized
to default. Whenever possible, quic configuration parameters are taken from
higher-level protocol settings, i.e. HTTP/3.
Diffstat (limited to 'src/http/v3/ngx_http_v3_streams.c')
-rw-r--r-- | src/http/v3/ngx_http_v3_streams.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/http/v3/ngx_http_v3_streams.c b/src/http/v3/ngx_http_v3_streams.c index 23b16cbc2..f0a599655 100644 --- a/src/http/v3/ngx_http_v3_streams.c +++ b/src/http/v3/ngx_http_v3_streams.c @@ -36,16 +36,13 @@ void ngx_http_v3_init_uni_stream(ngx_connection_t *c) { uint64_t n; - ngx_http_v3_srv_conf_t *h3scf; ngx_http_v3_uni_stream_t *us; ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "http3 init uni stream"); - h3scf = ngx_http_v3_get_module_srv_conf(c, ngx_http_v3_module); - n = c->quic->id >> 2; - if (n >= h3scf->max_uni_streams) { + if (n >= NGX_HTTP_V3_MAX_UNI_STREAMS) { ngx_http_v3_finalize_connection(c, NGX_HTTP_V3_ERR_STREAM_CREATION_ERROR, "reached maximum number of uni streams"); |