 +
      ngx_http_close_connection(c);
  }
-
-@@ -3684,6 +3808,17 @@ ngx_http_close_connection(ngx_connection_t *c)
+ 
+@@ -3684,6 +3808,21 @@ ngx_http_close_connection(ngx_connection_t *c)
      ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0,
                     "close http connection: %d", c->fd);
-
+ 
 +#if (NGX_HTTP_V3)
 +
 +    if (c->quic) {

+
     return ls;
 }

@@ -1803,6 +1828,9 @@ ngx_http_add_addrs(ngx_conf_t *cf, ngx_http_port_t *hport,
         addrs[i].conf.http2 = addr[i].opt.http2;
 #endif

+#endif
+
     clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
 
     if (r->main->count != 1) {
@@ -2896,6 +2999,19 @@ ngx_http_test_reading(ngx_http_request_t *r)
 
 #endif
 
+#if (NGX_HTTP_V3)
+
+    if (r->qstream) {
