mirror of
https://github.com/curl/curl.git
synced 2026-07-24 20:17:17 +03:00
urldata: rename easy_conn to just conn
We use "conn" everywhere to be a pointer to the connection. Introduces two functions that "attaches" and "detaches" the connection to and from the transfer. Going forward, we should favour using "data->conn" (since a transfer always only has a single connection or none at all) to "conn->data" (since a connection can have none, one or many transfers associated with it and updating conn->data to be correct is error prone and a frequent reason for internal issues). Closes #3442
This commit is contained in:
parent
61faa0b420
commit
ba243235ec
15 changed files with 199 additions and 204 deletions
|
|
@ -5,7 +5,7 @@
|
|||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
* Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
*
|
||||
* This software is licensed as described in the file COPYING, which
|
||||
* you should have received as part of this distribution. The terms
|
||||
|
|
@ -643,7 +643,7 @@ static CURLcode CONNECT(struct connectdata *conn,
|
|||
|
||||
void Curl_connect_free(struct Curl_easy *data)
|
||||
{
|
||||
struct connectdata *conn = data->easy_conn;
|
||||
struct connectdata *conn = data->conn;
|
||||
struct http_connect_state *s = conn->connect_state;
|
||||
if(s) {
|
||||
free(s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue