From bfa2d1d59932b9983e3a694ed651bc4fe349edc5 Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Wed, 17 Nov 2021 18:49:48 +0300 Subject: [PATCH] HTTP/3: fixed compilation with QUIC, but without HTTP/3. --- src/http/modules/ngx_http_quic_module.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/http/modules/ngx_http_quic_module.c b/src/http/modules/ngx_http_quic_module.c index 323ee2ead..9470df60e 100644 --- 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 *cf) 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; }