]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
quiche: handle stream reset
authorDaniel Stenberg <daniel@haxx.se>
Fri, 11 Feb 2022 22:05:10 +0000 (23:05 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 13 Feb 2022 10:48:32 +0000 (11:48 +0100)
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

index 7cf03fa3413f85230957ae23ea3e07baa6b3d226..ed1179d4dcbf7258b2e03f9709c33f2570d9eba8 100644 (file)
@@ -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 */