summaryrefslogtreecommitdiff
path: root/Utilities/cmcurl/lib/http2.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-09-24 10:04:49 -0400
committerBrad King <brad.king@kitware.com>2021-09-24 10:04:49 -0400
commit5b117bddd02f8df9d5994149f2017fb8989116bd (patch)
tree6f790721d7b287750faa5fd7336f6b36d3c42aba /Utilities/cmcurl/lib/http2.c
parent71ea2d607d0294f44f03e2a8e34cbb6222edc3a4 (diff)
parentc4f76b28dcabdf9513a244eb1ce7d1431ae4d84d (diff)
downloadcmake-5b117bddd02f8df9d5994149f2017fb8989116bd.tar.gz
Merge branch 'upstream-curl' into update-curl
* upstream-curl: curl 2021-09-22 (c7aef0a9)
Diffstat (limited to 'Utilities/cmcurl/lib/http2.c')
-rw-r--r--Utilities/cmcurl/lib/http2.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Utilities/cmcurl/lib/http2.c b/Utilities/cmcurl/lib/http2.c
index a3de607c7d..6d63f43636 100644
--- a/Utilities/cmcurl/lib/http2.c
+++ b/Utilities/cmcurl/lib/http2.c
@@ -2221,12 +2221,6 @@ CURLcode Curl_http2_setup(struct Curl_easy *data,
stream->mem = data->state.buffer;
stream->len = data->set.buffer_size;
- httpc->inbuflen = 0;
- httpc->nread_inbuf = 0;
-
- httpc->pause_stream_id = 0;
- httpc->drain_total = 0;
-
multi_connchanged(data->multi);
/* below this point only connection related inits are done, which only needs
to be done once per connection */
@@ -2252,6 +2246,12 @@ CURLcode Curl_http2_setup(struct Curl_easy *data,
conn->httpversion = 20;
conn->bundle->multiuse = BUNDLE_MULTIPLEX;
+ httpc->inbuflen = 0;
+ httpc->nread_inbuf = 0;
+
+ httpc->pause_stream_id = 0;
+ httpc->drain_total = 0;
+
infof(data, "Connection state changed (HTTP/2 confirmed)");
return CURLE_OK;