diff src/http/v3/ngx_http_v3_uni.c @ 9081:c851a2ed5ce8 quic

HTTP/3: "quic" parameter of "listen" directive. Now "listen" directve has a new "quic" parameter which enables QUIC protocol for the address. Further, to enable HTTP/3, a new directive "http3" is introduced. The hq-interop protocol is enabled by "http3_hq" as before. Now application protocol is chosen by ALPN. Previously used "http3" parameter of "listen" is deprecated.
author Roman Arutyunyan <arut@nginx.com>
date Mon, 27 Feb 2023 14:00:56 +0400
parents 6546c2ae1c7b
children 6c732b87ee10
line wrap: on
line diff
--- a/src/http/v3/ngx_http_v3_uni.c
+++ b/src/http/v3/ngx_http_v3_uni.c
@@ -37,12 +37,9 @@ void
 ngx_http_v3_init_uni_stream(ngx_connection_t *c)
 {
     uint64_t                   n;
-#if (NGX_HTTP_V3_HQ)
     ngx_http_v3_session_t     *h3c;
-#endif
     ngx_http_v3_uni_stream_t  *us;
 
-#if (NGX_HTTP_V3_HQ)
     h3c = ngx_http_v3_get_session(c);
     if (h3c->hq) {
         ngx_http_v3_finalize_connection(c,
@@ -52,7 +49,6 @@ ngx_http_v3_init_uni_stream(ngx_connecti
         ngx_http_v3_close_uni_stream(c);
         return;
     }
-#endif
 
     ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "http3 init uni stream");