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
This commit is contained in:
Daniel Stenberg 2022-02-11 23:05:10 +01:00
parent c8e8791d2d
commit f670665419
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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 */