From 24d43447d57008c114788f1501f08ebb76fe70d9 Mon Sep 17 00:00:00 2001 From: mbuhl Date: Thu, 23 Jan 2025 08:48:47 +0100 Subject: [PATCH] Avoid STOP_SENDING for unknown stream type in case fin is set. --- lib/nghttp3_conn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/nghttp3_conn.c b/lib/nghttp3_conn.c index 73b77d0..66b403f 100644 --- a/lib/nghttp3_conn.c +++ b/lib/nghttp3_conn.c @@ -607,6 +607,9 @@ nghttp3_ssize nghttp3_conn_read_uni(nghttp3_conn *conn, nghttp3_stream *stream, break; case NGHTTP3_STREAM_TYPE_UNKNOWN: nconsumed = (nghttp3_ssize)srclen; + if (fin) { + break; + } rv = conn_call_stop_sending(conn, stream, NGHTTP3_H3_STREAM_CREATION_ERROR); if (rv != 0) {