comparison src/http/v3/ngx_http_v3_request.c @ 9159:6d3ca6f8db35

HTTP/3: moved variable initialization.
author Roman Arutyunyan <arut@nginx.com>
date Wed, 13 Sep 2023 17:57:13 +0400
parents ad3d34ddfdcc
children 4939fd04737f
comparison
equal deleted inserted replaced
9158:ad3d34ddfdcc 9159:6d3ca6f8db35
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 clcf = ngx_http_get_module_loc_conf(hc->conf_ctx, ngx_http_core_module);
70 h3scf = ngx_http_get_module_srv_conf(hc->conf_ctx, ngx_http_v3_module);
71 70
72 if (c->quic == NULL) { 71 if (c->quic == NULL) {
73 if (ngx_http_v3_init_session(c) != NGX_OK) { 72 if (ngx_http_v3_init_session(c) != NGX_OK) {
74 ngx_http_close_connection(c); 73 ngx_http_close_connection(c);
75 return; 74 return;
76 } 75 }
77 76
77 h3scf = ngx_http_get_module_srv_conf(hc->conf_ctx, ngx_http_v3_module);
78 h3scf->quic.idle_timeout = clcf->keepalive_timeout; 78 h3scf->quic.idle_timeout = clcf->keepalive_timeout;
79
79 ngx_quic_run(c, &h3scf->quic); 80 ngx_quic_run(c, &h3scf->quic);
80 return; 81 return;
81 } 82 }
82 83
83 phc = ngx_http_quic_get_connection(c); 84 phc = ngx_http_quic_get_connection(c);