From: Daniel Stenberg Date: Fri, 11 Feb 2022 22:05:10 +0000 (+0100) Subject: quiche: handle stream reset X-Git-Tag: curl-7_82_0~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f670665419959c4116921e3d94d20a2ad54eb4f8;p=thirdparty%2Fcurl.git 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 --- 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 */