mirror of
https://github.com/curl/curl.git
synced 2026-07-26 22:57:17 +03:00
http3/quiche: fix result code on a stream reset
- fixes pytest failures in test 07_22 - aligns CURLcode values on stream reset with ngtcp2 Closes #12629
This commit is contained in:
parent
eeda18b1d2
commit
f712af2891
1 changed files with 2 additions and 2 deletions
|
|
@ -836,7 +836,7 @@ static ssize_t recv_closed_stream(struct Curl_cfilter *cf,
|
|||
if(stream->reset) {
|
||||
failf(data,
|
||||
"HTTP/3 stream %" PRId64 " reset by server", stream->id);
|
||||
*err = stream->resp_got_header? CURLE_PARTIAL_FILE : CURLE_RECV_ERROR;
|
||||
*err = stream->resp_got_header? CURLE_PARTIAL_FILE : CURLE_HTTP3;
|
||||
CURL_TRC_CF(data, cf, "[%" PRId64 "] cf_recv, was reset -> %d",
|
||||
stream->id, *err);
|
||||
}
|
||||
|
|
@ -846,7 +846,7 @@ static ssize_t recv_closed_stream(struct Curl_cfilter *cf,
|
|||
" all response header fields, treated as error",
|
||||
stream->id);
|
||||
/* *err = CURLE_PARTIAL_FILE; */
|
||||
*err = CURLE_RECV_ERROR;
|
||||
*err = CURLE_HTTP3;
|
||||
CURL_TRC_CF(data, cf, "[%" PRId64 "] cf_recv, closed incomplete"
|
||||
" -> %d", stream->id, *err);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue