]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
multi: don't close connection HTTP_1_1_REQUIRED
authorDaniel Stenberg <daniel@haxx.se>
Mon, 19 Apr 2021 12:49:21 +0000 (14:49 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 21 Apr 2021 06:20:24 +0000 (08:20 +0200)
The ConnectionExists() function will note that the new transfer wants
less then h2 and that it can't multiplex it and therefor opt to open a
new connection instead.

lib/multi.c

index eac918b9ac7f0c270ebd949d0c83e65d8df64352..99600a3ba4e44fed9e70c7802f4b38d91a6341ce 100644 (file)
@@ -2158,7 +2158,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
 
         if(!ret) {
           infof(data, "Downgrades to HTTP/1.1!\n");
-          connclose(data->conn, "Disconnect HTTP/2 for HTTP/1");
+          streamclose(data->conn, "Disconnect HTTP/2 for HTTP/1");
           data->state.httpwant = CURL_HTTP_VERSION_1_1;
           /* clear the error message bit too as we ignore the one we got */
           data->state.errorbuf = FALSE;