diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-05-12 09:15:02 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-05-12 09:15:02 +0200 |
commit | 640296c95de3d1c17bf1d81908f884bac9c8062f (patch) | |
tree | bfb1ae2dbf6e40a4bb2c07625b1a863ed8a84979 /lib/multihandle.h | |
parent | c4d6f9163a6b4ae0d2848c1127780f17a4a88810 (diff) | |
download | curl-640296c95de3d1c17bf1d81908f884bac9c8062f.tar.gz |
connection cache: avoid Curl_hash_alloc()
... by using plain structs instead of pointers for the connection cache,
we can avoid several dynamic allocations that weren't necessary.
Diffstat (limited to 'lib/multihandle.h')
-rw-r--r-- | lib/multihandle.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/multihandle.h b/lib/multihandle.h index d8b9d8892..2c7305dfd 100644 --- a/lib/multihandle.h +++ b/lib/multihandle.h @@ -22,6 +22,8 @@ * ***************************************************************************/ +#include "conncache.h" + struct Curl_message { /* the 'CURLMsg' is the part that is visible to the external user */ struct CURLMsg extmsg; @@ -99,7 +101,7 @@ struct Curl_multi { bool pipelining_enabled; /* Shared connection cache (bundles)*/ - struct conncache *conn_cache; + struct conncache conn_cache; /* This handle will be used for closing the cached connections in curl_multi_cleanup() */ |