From 964e43c5e21482f9a0ff8f0be135c4ab8afa9330 Mon Sep 17 00:00:00 2001 From: Lindley French Date: Thu, 12 Jun 2014 11:36:41 -0700 Subject: 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. --- lib/conncache.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/conncache.h') 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); -- cgit v1.2.3