 +
 +    if (rc != NGX_OK) {
 +        stream->skip_data = 1;
++
++        /* disable stream read to avoid pointless data events */
++        ngx_http_v3_stop_stream_read(stream, 0);
++
 +        return rc;
 +    }
 +

+    ngx_http_v3_close_stream(r->qstream, 0);
+}
+
+
+static void
+ngx_http_v3_finalize_connection(ngx_http_v3_connection_t *h3c,

From 1372db755f3ecda39a4baee7978fa150d7053376 Mon Sep 17 00:00:00 2001
From: Alessandro Ghedini <alessandro@cloudflare.com>
Date: Thu, 22 Oct 2020 12:28:02 +0100
Subject: [PATCH] Initial QUIC and HTTP/3 implementation using quiche
