From: Stefan Eissing Date: Wed, 3 Jan 2024 08:37:55 +0000 (+0100) Subject: http3/quiche: fix result code on a stream reset X-Git-Tag: curl-8_6_0~145 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f712af2891210fa1b22acb9a5fef734a6b73511e;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/vquic/curl_quiche.c b/lib/vquic/curl_quiche.c index 227adbdd9a..33c2621dc8 100644 --- a/lib/vquic/curl_quiche.c +++ b/lib/vquic/curl_quiche.c @@ -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); }