changeset 8584:474706351c09 quic

QUIC: fixed ngx_http_upstream_init() much like HTTP/2 connections.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 12 Oct 2020 14:00:00 +0100
parents d564e8850975
children 02ee77f8d53d
files src/http/ngx_http_upstream.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -523,6 +523,13 @@ ngx_http_upstream_init(ngx_http_request_
     }
 #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);
     }