Mercurial > hg > nginx
comparison src/http/ngx_http_request.c @ 8563:bed310672f39 quic
QUIC: moved ssl configuration pointer to quic configuration.
The ssl configuration is obtained at config time and saved for future use.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Thu, 01 Oct 2020 10:04:35 +0300 |
parents | 8b6486f0fe79 |
children | 0875101c08f7 |
comparison
equal
deleted
inserted
replaced
8562:b31c02454539 | 8563:bed310672f39 |
---|---|
305 #if (NGX_HTTP_QUIC) | 305 #if (NGX_HTTP_QUIC) |
306 | 306 |
307 if (hc->addr_conf->quic) { | 307 if (hc->addr_conf->quic) { |
308 ngx_quic_conf_t *qcf; | 308 ngx_quic_conf_t *qcf; |
309 ngx_http_connection_t *phc; | 309 ngx_http_connection_t *phc; |
310 ngx_http_ssl_srv_conf_t *sscf; | |
311 ngx_http_core_loc_conf_t *clcf; | 310 ngx_http_core_loc_conf_t *clcf; |
312 | 311 |
313 hc->ssl = 1; | 312 hc->ssl = 1; |
314 | 313 |
315 #if (NGX_HTTP_V3) | 314 #if (NGX_HTTP_V3) |
334 if (c->qs == NULL) { | 333 if (c->qs == NULL) { |
335 c->log->connection = c->number; | 334 c->log->connection = c->number; |
336 | 335 |
337 qcf = ngx_http_get_module_srv_conf(hc->conf_ctx, | 336 qcf = ngx_http_get_module_srv_conf(hc->conf_ctx, |
338 ngx_http_quic_module); | 337 ngx_http_quic_module); |
339 sscf = ngx_http_get_module_srv_conf(hc->conf_ctx, | 338 ngx_quic_run(c, qcf); |
340 ngx_http_ssl_module); | |
341 | |
342 ngx_quic_run(c, &sscf->ssl, qcf); | |
343 return; | 339 return; |
344 } | 340 } |
345 | 341 |
346 phc = c->qs->parent->data; | 342 phc = c->qs->parent->data; |
347 | 343 |