changeset 8907:122bfa14465b quic

HTTP/3: fixed compilation with QUIC, but without HTTP/3.
author Roman Arutyunyan <arut@nginx.com>
date Wed, 17 Nov 2021 18:49:48 +0300
parents 41caf5410110
children e8cbbfabe547
files src/http/modules/ngx_http_quic_module.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/modules/ngx_http_quic_module.c
+++ b/src/http/modules/ngx_http_quic_module.c
@@ -332,8 +332,10 @@ ngx_http_quic_create_srv_conf(ngx_conf_t
 
     conf->retry = NGX_CONF_UNSET;
     conf->gso_enabled = NGX_CONF_UNSET;
+#if (NGX_HTTP_V3)
     conf->stream_close_code = NGX_HTTP_V3_ERR_NO_ERROR;
     conf->stream_reject_code_bidi = NGX_HTTP_V3_ERR_REQUEST_REJECTED;
+#endif
 
     return conf;
 }