conncache: move the connection counter to the cache struct
authorLindley French <lindleyf@gmail.com>
Thu, 12 Jun 2014 18:36:41 +0000 (11:36 -0700)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 13 Jun 2014 13:05:24 +0000 (15:05 +0200)
commit964e43c5e21482f9a0ff8f0be135c4ab8afa9330
treeae87b7fa23ca7952fd1ef902d79bb72efb8b5a97
parentd5d98c1297dd7ed2c6d649e064ad694823829076
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.c
lib/conncache.h
lib/url.c