summaryrefslogtreecommitdiff
path: root/lib/http.c
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/http.c
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/http.c')
-rw-r--r--lib/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c
index 33e4c62e5..5823bb9b4 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -3162,7 +3162,7 @@ CURLcode Curl_http(struct Curl_easy *data, bool *done)
(data->state.httpwant == CURL_HTTP_VERSION_2)) {
/* append HTTP2 upgrade magic stuff to the HTTP request if it isn't done
over SSL */
- result = Curl_http2_request_upgrade(&req, conn);
+ result = Curl_http2_request_upgrade(&req, data);
if(result) {
Curl_dyn_free(&req);
return result;