aboutsummaryrefslogtreecommitdiff
path: root/lib/conncache.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-12-20 16:39:02 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-12-22 18:14:50 +0100
commitfb445a1e18d12f577964c9347bc5bca74b37cd08 (patch)
treef4f9b2971a2c4b2d41f05bbf58508f8ae22100f7 /lib/conncache.h
parentd18a5afaf07fdc093c6a6131cc7926a3d5a55407 (diff)
disconnect: separate connections and easy handles better
Do not assume/store assocation between a given easy handle and the connection if it can be avoided. Long-term, the 'conn->data' pointer should probably be removed as it is a little too error-prone. Still used very widely though. Reported-by: masbug on github Fixes #3391 Closes #3400
Diffstat (limited to 'lib/conncache.h')
-rw-r--r--lib/conncache.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/conncache.h b/lib/conncache.h
index eedd7a800..81566dcd3 100644
--- a/lib/conncache.h
+++ b/lib/conncache.h
@@ -64,7 +64,8 @@ size_t Curl_conncache_bundle_size(struct connectdata *conn);
bool Curl_conncache_return_conn(struct connectdata *conn);
CURLcode Curl_conncache_add_conn(struct conncache *connc,
struct connectdata *conn) WARN_UNUSED_RESULT;
-void Curl_conncache_remove_conn(struct connectdata *conn,
+void Curl_conncache_remove_conn(struct Curl_easy *data,
+ struct connectdata *conn,
bool lock);
bool Curl_conncache_foreach(struct Curl_easy *data,
struct conncache *connc,