comparison src/http/v3/ngx_http_v3_request.c @ 8924: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 be08b858086a
children e4952530e6af
comparison
equal deleted inserted replaced
8923:651cc905b7c2 8924:d6ef13c5fd8e
64 64
65 hc = c->data; 65 hc = c->data;
66 66
67 hc->ssl = 1; 67 hc->ssl = 1;
68 68
69 clcf = ngx_http_get_module_loc_conf(hc->conf_ctx, ngx_http_core_module);
69 h3scf = ngx_http_get_module_srv_conf(hc->conf_ctx, ngx_http_v3_module); 70 h3scf = ngx_http_get_module_srv_conf(hc->conf_ctx, ngx_http_v3_module);
70 71
71 if (c->quic == NULL) { 72 if (c->quic == NULL) {
73 h3scf->quic.timeout = clcf->keepalive_timeout;
72 ngx_quic_run(c, &h3scf->quic); 74 ngx_quic_run(c, &h3scf->quic);
73 return; 75 return;
74 } 76 }
75 77
76 phc = ngx_http_quic_get_connection(c); 78 phc = ngx_http_quic_get_connection(c);
77 79
78 if (phc->ssl_servername) { 80 if (phc->ssl_servername) {
79 hc->ssl_servername = phc->ssl_servername; 81 hc->ssl_servername = phc->ssl_servername;
80 hc->conf_ctx = phc->conf_ctx; 82 hc->conf_ctx = phc->conf_ctx;
81 83
82 clcf = ngx_http_get_module_loc_conf(hc->conf_ctx, ngx_http_core_module);
83 ngx_set_connection_log(c, clcf->error_log); 84 ngx_set_connection_log(c, clcf->error_log);
84 } 85 }
85 86
86 #if (NGX_HTTP_V3_HQ) 87 #if (NGX_HTTP_V3_HQ)
87 if (h3scf->hq) { 88 if (h3scf->hq) {