]> granicus.if.org Git - curl/commit
urldata: rename easy_conn to just conn
authorDaniel Stenberg <daniel@haxx.se>
Wed, 2 Jan 2019 17:04:58 +0000 (18:04 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 11 Jan 2019 14:35:13 +0000 (15:35 +0100)
commitba243235ec04af62aee2cfc31bf0f05488e59fe7
tree0f6584b31330f15dbbef48afefd00c1c51e686ea
parent61faa0b420c236480bc9ef6fd52b4ecc1e0f8d17
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
15 files changed:
lib/conncache.c
lib/curl_sasl.c
lib/easy.c
lib/getinfo.c
lib/http2.c
lib/http_proxy.c
lib/multi.c
lib/multiif.h
lib/setopt.c
lib/url.c
lib/url.h
lib/urldata.h
lib/vauth/digest_sspi.c
lib/vauth/spnego_sspi.c
tests/unit/unit1620.c