 +
 +    fc = r->connection;
 +
++    if (fc->error) {
++        return NGX_ERROR;
++    }
++
 +    h3c = r->qstream->connection;
 +    c = h3c->connection;
 +

+                   "finalize quic connection: %d", c->fd);
+
+    c->error = 1;
+
+    quiche_conn_close(c->quic->conn, false, status, NULL, 0);
+

+        fc = r->connection;
+
+        fc->error = 1;
+
+        if (c->close) {
+            fc->close = 1;
+        }
+
+        if (stream->blocked) {
+            stream->blocked = 0;
