mirror of
https://github.com/nginx/nginx.git
synced 2025-08-06 14:56:15 +08:00
HTTP/3: moved variable initialization.
This commit is contained in:
parent
33dca88792
commit
ec37134416
@ -67,7 +67,6 @@ ngx_http_v3_init_stream(ngx_connection_t *c)
|
|||||||
hc->ssl = 1;
|
hc->ssl = 1;
|
||||||
|
|
||||||
clcf = ngx_http_get_module_loc_conf(hc->conf_ctx, ngx_http_core_module);
|
clcf = ngx_http_get_module_loc_conf(hc->conf_ctx, ngx_http_core_module);
|
||||||
h3scf = ngx_http_get_module_srv_conf(hc->conf_ctx, ngx_http_v3_module);
|
|
||||||
|
|
||||||
if (c->quic == NULL) {
|
if (c->quic == NULL) {
|
||||||
if (ngx_http_v3_init_session(c) != NGX_OK) {
|
if (ngx_http_v3_init_session(c) != NGX_OK) {
|
||||||
@ -75,7 +74,9 @@ ngx_http_v3_init_stream(ngx_connection_t *c)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h3scf = ngx_http_get_module_srv_conf(hc->conf_ctx, ngx_http_v3_module);
|
||||||
h3scf->quic.idle_timeout = clcf->keepalive_timeout;
|
h3scf->quic.idle_timeout = clcf->keepalive_timeout;
|
||||||
|
|
||||||
ngx_quic_run(c, &h3scf->quic);
|
ngx_quic_run(c, &h3scf->quic);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user