cast to unsigned long before printing hrtime

Change-Id: I3af250bfcca09bd76c49c8cf5b0868543e62d83f
Move timer stuff over to its own header file

Change-Id: I6d99e887736eeb28747664d15fe4c63db40dd9c8
Decouple lcb_connection_st structure

- Connection structure now owns the addrinfo stuff
- No timers in connection structure except for initial connect
- connection_start requires a hostname and a set of handlers
- extended timer API. No more 'update_timer' and 'delete_timer'
- Connection startup info dropped after successful connecton

Change-Id: I162e3a45ac22dccd876ca63a7c4623297215a3cf
Connection Manager/Socket Pool

This introduces a connection manager with pooling options to allow for
better utilization and caching of sockets

Change-Id: Ia2b306f000d01a9443589b0cba2a45b5205a9319
Fixup some build failures/warnings on win32

Change-Id: I21729495dc864f1737b7999aca1eabb143bad5c7
server_negotiate: always release ringbuffer

Change-Id: I5f1ae990c57cd9ed090f482ac44070ffd8036383
CCBC-275: Test shouldn't assume internal server state

Change-Id: Ifae621b95b0afaaa0597ecbaf19d68ba2f336b16
Utilize connection pool for memcached sockets

This eliminates extra connections for memcached when using CCCP sockets.
In other words, CCCP no longer allocates its own "Private" socket, but
rather releases its private connection to the pool once it has completed
using it.

Additionally, cccp will now use existing memcached sockets for cluster
information (if so required) rather than creating new sockets from the
pool

Change-Id: I9c8fe908248d96103672915474f048720e1b9e3d
Provide time-based threshold for resetting configuration

This provides a time-based threshold so that low-use modes can get
configuration refreshes fairly quickly

Change-Id: If1de2d8b380a4823e95ddb0c608c842d5e19f7be
bc_file: Check if buffer is empty

Change-Id: Ife945f74098f3f5ef2138c4e1f861394c20fb3a6
bootstrap: don't maintain config for TYPE_CLUSTER

We don't need it, and it causes some other assumptions and tests to
fail. In reality this is a hack, but other than making an entirely new
codepath for admin connections, this is the best we can do right now

Change-Id: If5ddd5c9e034e3ddecc681a86d0f6e8a749099d1
confmon: don't poison clconfig memory space

We already have an assertion at the top telling us that the refcount
must be > 0

Change-Id: Ie4a508072fadec6a33533314ad4397cfcd67d55a
readwrite-easy: Don't invoke error callback if bytes were read

This allows us to swallow the entire read buffer contents and only
complain if we've had a close WITHOUT data.

Change-Id: Ib7601d696e826af13ce35cdec5d9abf450a25303
TODO: Maybe place this inside sockrw_v0 read itself?
Add environment variable to disable CCCP

In testing environments with either mock or cluster_run, port 11210 may
not exist, or worse, may be part of a different cluster than intended.

While in the unit tests in LCB we manually specify the memcached ports,
this may not be possible with wrapping SDKs, especially of older
versions

Change-Id: Ib1a5499ec08b698dbcf9139d7321628ba4d85d0c
clconfig: Allow more events for listener

This also allows us to terminate the loop early if no providers remain
rather than busy looping. This speeds up tests and most use cases as
well.

Change-Id: Icf123cfba071caa905e8f6602fed05551ac9630b
http: incref connection in io_read

Change-Id: I8667876c78105ffca8b8c9ab7a52e3de3eca9ea9
bc_http: Logging/Error-Reporting enhancements

Change-Id: Ic540db7650fc737cadb88fdb67e83c861513d3e6
connect.c: more logging

Change-Id: Idf18485f57e81b02d3ee9271f4745bd12ecb7ba8
Fixup NMakefile

Change-Id: I6348415eac5ff8070ddfbc17de4f67fb409d21e1
confmon tests: Stop loop when maximum providers are reached

Change-Id: I0cb19224ee81895ba9dff48dddab18d91f119c6b