mirror of
https://github.com/moparisthebest/curl
synced 2025-03-03 10:51:49 -05:00
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.
This commit is contained in:
parent
605e842355
commit
9c18c0b4dd
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user