From 854ec765515ce900cd1440603cc3a1d611ce92e0 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 1 Apr 2022 23:30:42 +0200 Subject: [PATCH] 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 --- lib/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;