]> git.kaiwu.me - nginx.git/commitdiff
QUIC: fixed ngx_http_upstream_init() much like HTTP/2 connections.
authorSergey Kandaurov <pluknet@nginx.com>
Mon, 12 Oct 2020 13:00:00 +0000 (14:00 +0100)
committerSergey Kandaurov <pluknet@nginx.com>
Mon, 12 Oct 2020 13:00:00 +0000 (14:00 +0100)
src/http/ngx_http_upstream.c

index 53c77105bb7fbbf5a223c5df476cef1b6a0a84d0..419d936b830050aa9743dc7e0166a9eceb530628 100644 (file)
@@ -523,6 +523,13 @@ ngx_http_upstream_init(ngx_http_request_t *r)
     }
 #endif
 
+#if (NGX_HTTP_QUIC)
+    if (c->qs) {
+        ngx_http_upstream_init_request(r);
+        return;
+    }
+#endif
+
     if (c->read->timer_set) {
         ngx_del_timer(c->read);
     }