mirror of
https://github.com/curl/curl.git
synced 2026-08-26 10:23:31 +03:00
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
This commit is contained in:
parent
d18a5afaf0
commit
fb445a1e18
4 changed files with 13 additions and 13 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue