mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
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:
parent
c8e8791d2d
commit
f670665419
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user