diff src/http/v3/ngx_http_v3.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 b0c2234aaa9f
children 394e9a2cefc4
line wrap: on
line diff
--- a/src/http/v3/ngx_http_v3.c
+++ b/src/http/v3/ngx_http_v3.c
@@ -17,12 +17,9 @@ static void ngx_http_v3_cleanup_session(
 ngx_int_t
 ngx_http_v3_init_session(ngx_connection_t *c)
 {
-    ngx_pool_cleanup_t      *cln;
-    ngx_http_connection_t   *hc;
-    ngx_http_v3_session_t   *h3c;
-#if (NGX_HTTP_V3_HQ)
-    ngx_http_v3_srv_conf_t  *h3scf;
-#endif
+    ngx_pool_cleanup_t     *cln;
+    ngx_http_connection_t  *hc;
+    ngx_http_v3_session_t  *h3c;
 
     hc = c->data;
 
@@ -36,13 +33,6 @@ ngx_http_v3_init_session(ngx_connection_
     h3c->max_push_id = (uint64_t) -1;
     h3c->goaway_push_id = (uint64_t) -1;
 
-#if (NGX_HTTP_V3_HQ)
-    h3scf = ngx_http_get_module_srv_conf(hc->conf_ctx, ngx_http_v3_module);
-    if (h3scf->hq) {
-        h3c->hq = 1;
-    }
-#endif
-
     ngx_queue_init(&h3c->blocked);
     ngx_queue_init(&h3c->pushing);