From: Roman Arutyunyan Date: Wed, 17 Nov 2021 15:49:48 +0000 (+0300) Subject: HTTP/3: fixed compilation with QUIC, but without HTTP/3. X-Git-Tag: release-1.25.0~4^2~202 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=bfa2d1d59932b9983e3a694ed651bc4fe349edc5;p=nginx.git HTTP/3: fixed compilation with QUIC, but without HTTP/3. --- 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; }