summaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-01-02 18:04:58 +0100
committerDaniel Stenberg <daniel@haxx.se>2019-01-10 10:07:11 +0100
commit152a81e45b62adc9086f895551a0d201be7e7e2f (patch)
tree2ca24f5f0252385b8414bd208227224b0cab1b0b /lib/urldata.h
parent4c35574bb785ce44d72db5483541c9da2d885705 (diff)
downloadcurl-bagder/conn-data-cleanup.tar.gz
urldata: rename easy_conn to just connbagder/conn-data-cleanup
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). Side-effect: this also removes some old pipelining logic that isn't used and is destined for removal in April 2019 according to DEPRECATE.md. Closes #3442
Diffstat (limited to 'lib/urldata.h')
-rw-r--r--lib/urldata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index 177c39850..72c75cbd9 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -1777,7 +1777,7 @@ struct Curl_easy {
struct Curl_easy *next;
struct Curl_easy *prev;
- struct connectdata *easy_conn; /* the "unit's" connection */
+ struct connectdata *conn;
struct curl_llist_element connect_queue;
struct curl_llist_element pipeline_queue;
struct curl_llist_element sh_queue; /* list per Curl_sh_entry */