diff src/http/ngx_http_request.c @ 8921:33226ac61076 quic

HTTP/3: merged ngx_http_quic_module into ngx_http_v3_module.
author Roman Arutyunyan <arut@nginx.com>
date Mon, 06 Dec 2021 13:02:36 +0300
parents 0d3bf08eaac0
children be08b858086a
line wrap: on
line diff
--- a/src/http/ngx_http_request.c	Thu Dec 02 14:09:52 2021 +0300
+++ b/src/http/ngx_http_request.c	Mon Dec 06 13:02:36 2021 +0300
@@ -316,14 +316,6 @@
 
     c->log_error = NGX_ERROR_INFO;
 
-#if (NGX_HTTP_QUIC)
-    if (hc->addr_conf->quic) {
-        if (ngx_http_quic_init(c) == NGX_DONE) {
-            return;
-        }
-    }
-#endif
-
     rev = c->read;
     rev->handler = ngx_http_wait_request_handler;
     c->write->handler = ngx_http_empty_handler;
@@ -335,7 +327,7 @@
 #endif
 
 #if (NGX_HTTP_V3)
-    if (hc->addr_conf->http3) {
+    if (hc->addr_conf->quic) {
         ngx_http_v3_init(c);
         return;
     }
@@ -2746,7 +2738,7 @@
     }
 #endif
 
-#if (NGX_HTTP_QUIC)
+#if (NGX_HTTP_V3)
     if (r->connection->quic) {
         ngx_http_close_request(r, 0);
         return;
@@ -2967,7 +2959,7 @@
 
 #endif
 
-#if (NGX_HTTP_QUIC)
+#if (NGX_HTTP_V3)
 
     if (c->quic) {
         if (c->read->error) {
@@ -3732,7 +3724,7 @@
     log->action = "closing request";
 
     if (r->connection->timedout
-#if (NGX_HTTP_QUIC)
+#if (NGX_HTTP_V3)
         && r->connection->quic == NULL
 #endif
        )
@@ -3810,7 +3802,7 @@
 #endif
 
 #if (NGX_HTTP_V3)
-    if (ngx_http_v3_connection(c)) {
+    if (c->quic) {
         ngx_http_v3_reset_connection(c);
     }
 #endif