diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-04-27 00:33:21 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-04-30 14:27:54 +0200 |
commit | c06902713998d68202c5a764de910ba8d0e8f54d (patch) | |
tree | bc7f53131c6b294af2b0475ed83349d0dcee8a3d /lib/multiif.h | |
parent | 9a8fa076bff31b55b6d12c0c6da7448ec4ecdf67 (diff) | |
download | curl-c06902713998d68202c5a764de910ba8d0e8f54d.tar.gz |
conncache: various concept cleanups
More connection cache accesses are protected by locks.
CONNCACHE_* is a beter prefix for the connection cache lock macros.
Curl_attach_connnection: now called as soon as there's a connection
struct available and before the connection is added to the connection
cache.
Curl_disconnect: now assumes that the connection is already removed from
the connection cache.
Ref: #4915
Closes #5009
Diffstat (limited to 'lib/multiif.h')
-rw-r--r-- | lib/multiif.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/multiif.h b/lib/multiif.h index bde755ee0..c07587baf 100644 --- a/lib/multiif.h +++ b/lib/multiif.h @@ -33,6 +33,7 @@ void Curl_expire_done(struct Curl_easy *data, expire_id id); void Curl_update_timer(struct Curl_multi *multi); void Curl_attach_connnection(struct Curl_easy *data, struct connectdata *conn); +void Curl_detach_connnection(struct Curl_easy *data); bool Curl_multiplex_wanted(const struct Curl_multi *multi); void Curl_set_in_callback(struct Curl_easy *data, bool value); bool Curl_is_in_callback(struct Curl_easy *easy); |