From: Daniel Stenberg Date: Fri, 1 Apr 2022 21:30:42 +0000 (+0200) Subject: http: streamclose "already downloaded" X-Git-Tag: curl-7_83_0~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=854ec765515ce900cd1440603cc3a1d611ce92e0;p=thirdparty%2Fcurl.git http: streamclose "already downloaded" Instead of connclose()ing, since when HTTP/2 is used it doesn't need to close the connection as stopping the current transfer is enough. Reported-by: Evangelos Foutras Closes #8665 --- diff --git a/lib/http.c b/lib/http.c index e3a517354d..cca378ff00 100644 --- a/lib/http.c +++ b/lib/http.c @@ -2927,7 +2927,7 @@ CURLcode Curl_http_firstwrite(struct Curl_easy *data, /* The resume point is at the end of file, consider this fine even if it doesn't allow resume from here. */ infof(data, "The entire document is already downloaded"); - connclose(conn, "already downloaded"); + streamclose(conn, "already downloaded"); /* Abort download */ k->keepon &= ~KEEP_RECV; *done = TRUE;