From f670665419959c4116921e3d94d20a2ad54eb4f8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 11 Feb 2022 23:05:10 +0100 Subject: [PATCH] quiche: handle stream reset A stream reset now causes a CURLE_PARTIAL_FILE error. I'm not convinced this is the right action nor the right error code. Reported-by: Lucas Pardue Fixes #8437 Closes #8440 --- lib/vquic/quiche.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/vquic/quiche.c b/lib/vquic/quiche.c index 7cf03fa341..ed1179d4dc 100644 --- a/lib/vquic/quiche.c +++ b/lib/vquic/quiche.c @@ -648,6 +648,11 @@ static ssize_t h3_stream_recv(struct Curl_easy *data, recvd += rcode; break; + case QUICHE_H3_EVENT_RESET: + streamclose(conn, "Stream reset"); + *curlcode = CURLE_PARTIAL_FILE; + return -1; + case QUICHE_H3_EVENT_FINISHED: streamclose(conn, "End of stream"); recvd = 0; /* end of stream */ -- 2.47.3