[nginx] HTTP/3: moved variable initialization.
Roman Arutyunyan
arut at nginx.com
Fri Sep 22 15:36:28 UTC 2023
details: https://hg.nginx.org/nginx/rev/6d3ca6f8db35
branches:
changeset: 9159:6d3ca6f8db35
user: Roman Arutyunyan <arut at nginx.com>
date: Wed Sep 13 17:57:13 2023 +0400
description:
HTTP/3: moved variable initialization.
diffstat:
src/http/v3/ngx_http_v3_request.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r ad3d34ddfdcc -r 6d3ca6f8db35 src/http/v3/ngx_http_v3_request.c
--- a/src/http/v3/ngx_http_v3_request.c Wed Sep 13 17:59:37 2023 +0400
+++ b/src/http/v3/ngx_http_v3_request.c Wed Sep 13 17:57:13 2023 +0400
@@ -67,7 +67,6 @@ ngx_http_v3_init_stream(ngx_connection_t
hc->ssl = 1;
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 (ngx_http_v3_init_session(c) != NGX_OK) {
@@ -75,7 +74,9 @@ ngx_http_v3_init_stream(ngx_connection_t
return;
}
+ h3scf = ngx_http_get_module_srv_conf(hc->conf_ctx, ngx_http_v3_module);
h3scf->quic.idle_timeout = clcf->keepalive_timeout;
+
ngx_quic_run(c, &h3scf->quic);
return;
}
More information about the nginx-devel
mailing list