From: Daniel Stenberg Date: Fri, 1 Apr 2022 11:22:58 +0000 (+0200) Subject: http: close the stream (not connection) on time condition abort X-Git-Tag: curl-7_83_0~81 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3fa634a33742c1c585a7d43e354cc227423ffb29;p=thirdparty%2Fcurl.git http: close the stream (not connection) on time condition abort Closes #8664 --- diff --git a/lib/http.c b/lib/http.c index 6445f98f8d..63cc748e8b 100644 --- a/lib/http.c +++ b/lib/http.c @@ -2955,7 +2955,7 @@ CURLcode Curl_http_firstwrite(struct Curl_easy *data, infof(data, "Simulate a HTTP 304 response!"); /* we abort the transfer before it is completed == we ruin the re-use ability. Close the connection */ - connclose(conn, "Simulated 304 handling"); + streamclose(conn, "Simulated 304 handling"); return CURLE_OK; } } /* we have a time condition */