 +    ngx_log_debug1(NGX_LOG_DEBUG_HTTP, h3c->connection->log, 0,
 +                   "http3 close stream %ui", stream->id);
 +
++    if (stream->blocked) {
++        fc->write->handler = ngx_http_v3_close_stream_handler;
++        fc->read->handler = ngx_http_empty_handler;
++        return;
++    }
++
 +    quiche_conn_stream_shutdown(h3c->connection->quic->conn, stream->id,
 +                                QUICHE_SHUTDOWN_READ, 0);
 +

+
+    c = h3c->connection;
+
+    quiche_conn_close(c->quic->conn, true, status, NULL, 0);
+
+    c->error = 1;

From 14d229013e0d8e1bc837aa22980a8d1015c7ab5f Mon Sep 17 00:00:00 2001
From: Alessandro Ghedini <alessandro@cloudflare.com>
Date: Thu, 10 Oct 2019 17:06:08 +0100
Subject: [PATCH] Initial QUIC and HTTP/3 implementation using quiche
