diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-09-16 08:50:54 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-09-16 08:50:54 +0200 |
commit | 45960e31ee0ff98167c341a602cbf64af6891af9 (patch) | |
tree | a2093f2aacef2f29f02619c45e4b9a0fbeb79fb8 | |
parent | ab78d2c679dfb37b27e89f42ad050c3153fa7513 (diff) | |
download | curl-bagder/http2-setup.tar.gz |
Curl_http2_setup: don't change connection data on repeat invokesbagder/http2-setup
Regression from 3cb8a748670ab88c (releasde in 7.79.0). That change moved
transfer oriented inits to before the check but also erroneously moved a
few connection oriented ones, which causes problems.
Fixes #7730
Reported-by: Evangelos Foutras
-rw-r--r-- | lib/http2.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/http2.c b/lib/http2.c index a3de607c7..6d63f4363 100644 --- a/lib/http2.c +++ b/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; |