summaryrefslogtreecommitdiff
path: root/lib/http2.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-02-15 08:35:32 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-02-15 16:33:53 +0100
commit723c0e75fa3e74cdad5ad2b3c130f9b974e89ef1 (patch)
treecd449973e61d8799afbe53c9b643af4a071b17f4 /lib/http2.h
parentf2f91ac709bcfc85ce0447c3ab6b7e41efef8606 (diff)
downloadcurl-723c0e75fa3e74cdad5ad2b3c130f9b974e89ef1.tar.gz
http2: remove conn->data use
... but instead use a private alternative that points to the "driving transfer" from the connection. We set the "user data" associated with the connection to be the connectdata struct, but when we drive transfers the code still needs to know the pointer to the transfer. We can change the user data to become the Curl_easy handle, but with older nghttp2 version we cannot dynamically update that pointer properly when different transfers are used over the same connection. Closes #6520
Diffstat (limited to 'lib/http2.h')
-rw-r--r--lib/http2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http2.h b/lib/http2.h
index 119e584a8..150f7219f 100644
--- a/lib/http2.h
+++ b/lib/http2.h
@@ -43,7 +43,7 @@ CURLcode Curl_http2_init(struct connectdata *conn);
void Curl_http2_init_state(struct UrlState *state);
void Curl_http2_init_userset(struct UserDefined *set);
CURLcode Curl_http2_request_upgrade(struct dynbuf *req,
- struct connectdata *conn);
+ struct Curl_easy *data);
CURLcode Curl_http2_setup(struct Curl_easy *data, struct connectdata *conn);
CURLcode Curl_http2_switched(struct Curl_easy *data,
const char *ptr, size_t nread);