comparison src/http/v3/ngx_http_v3_streams.c @ 8713:d6ef13c5fd8e quic

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.
author Vladimir Homutov <vl@nginx.com>
date Mon, 06 Dec 2021 15:19:54 +0300
parents 0d3bf08eaac0
children
comparison
equal deleted inserted replaced
8712:651cc905b7c2 8713:d6ef13c5fd8e
34 34
35 void 35 void
36 ngx_http_v3_init_uni_stream(ngx_connection_t *c) 36 ngx_http_v3_init_uni_stream(ngx_connection_t *c)
37 { 37 {
38 uint64_t n; 38 uint64_t n;
39 ngx_http_v3_srv_conf_t *h3scf;
40 ngx_http_v3_uni_stream_t *us; 39 ngx_http_v3_uni_stream_t *us;
41 40
42 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "http3 init uni stream"); 41 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "http3 init uni stream");
43 42
44 h3scf = ngx_http_v3_get_module_srv_conf(c, ngx_http_v3_module);
45
46 n = c->quic->id >> 2; 43 n = c->quic->id >> 2;
47 44
48 if (n >= h3scf->max_uni_streams) { 45 if (n >= NGX_HTTP_V3_MAX_UNI_STREAMS) {
49 ngx_http_v3_finalize_connection(c, 46 ngx_http_v3_finalize_connection(c,
50 NGX_HTTP_V3_ERR_STREAM_CREATION_ERROR, 47 NGX_HTTP_V3_ERR_STREAM_CREATION_ERROR,
51 "reached maximum number of uni streams"); 48 "reached maximum number of uni streams");
52 c->data = NULL; 49 c->data = NULL;
53 ngx_http_v3_close_uni_stream(c); 50 ngx_http_v3_close_uni_stream(c);