From: Daniel Stenberg Date: Mon, 19 Apr 2021 12:49:21 +0000 (+0200) Subject: multi: don't close connection HTTP_1_1_REQUIRED X-Git-Tag: curl-7_77_0~171 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c18c0b4dd8f00ed60f0c1994138afe556428114;p=thirdparty%2Fcurl.git multi: don't close connection HTTP_1_1_REQUIRED 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. --- diff --git a/lib/multi.c b/lib/multi.c index eac918b9ac..99600a3ba4 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -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;