]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http: streamclose "already downloaded"
authorDaniel Stenberg <daniel@haxx.se>
Fri, 1 Apr 2022 21:30:42 +0000 (23:30 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 1 Apr 2022 21:30:43 +0000 (23:30 +0200)
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

index e3a517354dc54069607f7673fbdb9824d6a830c4..cca378ff0007ade9cb5802747c2e22fc929d44e8 100644 (file)
@@ -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;