mirror of
https://github.com/curl/curl.git
synced 2026-08-25 07:33:36 +03:00
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
This commit is contained in:
parent
f2f91ac709
commit
723c0e75fa
4 changed files with 67 additions and 40 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue