summaryrefslogtreecommitdiff
path: root/lib/conncache.h
diff options
context:
space:
mode:
authorLindley French <lindleyf@gmail.com>2014-06-12 11:36:41 -0700
committerDaniel Stenberg <daniel@haxx.se>2014-06-13 15:05:24 +0200
commit964e43c5e21482f9a0ff8f0be135c4ab8afa9330 (patch)
treeae87b7fa23ca7952fd1ef902d79bb72efb8b5a97 /lib/conncache.h
parentd5d98c1297dd7ed2c6d649e064ad694823829076 (diff)
downloadcurl-964e43c5e21482f9a0ff8f0be135c4ab8afa9330.tar.gz
conncache: move the connection counter to the cache struct
The static connection counter caused a race condition. Moving the connection id counter into conncache solves it, as well as simplifying the related logic.
Diffstat (limited to 'lib/conncache.h')
-rw-r--r--lib/conncache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/conncache.h b/lib/conncache.h
index f5e41f187..691f061f9 100644
--- a/lib/conncache.h
+++ b/lib/conncache.h
@@ -25,6 +25,7 @@
struct conncache {
struct curl_hash *hash;
size_t num_connections;
+ size_t next_connection_id;
};
struct conncache *Curl_conncache_init(int size);