diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-04-19 14:49:21 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-04-19 14:49:21 +0200 |
commit | 88a7a6d8f3851fdd12741d7ff181d5cc7f1c2bb1 (patch) | |
tree | 113b3034e161e075ed5f5350969adeb74b664c92 | |
parent | 4da30c3d8b7063abd4b4582c529f4c9d20d77fac (diff) | |
download | curl-88a7a6d8f3851fdd12741d7ff181d5cc7f1c2bb1.tar.gz |
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.
-rw-r--r-- | lib/multi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/multi.c b/lib/multi.c index eac918b9a..99600a3ba 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; |