Remove CCBC-282 test

This test is no longer applicable because multi get has been removed for
now

Change-Id: I64a50bf2efc65a5ac880650f8bdc5739f007a6b7
Reviewed-on: http://review.couchbase.org/34610
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Don't abort on unrecognized win32 error codes

Change-Id: I3497a33144f79593b1066978dcfd661db1975bae
Reviewed-on: http://review.couchbase.org/35872
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Add RDB readbuffer system

The RDB system allows for pluggable allocators for efficient read
buffers. See the src/rdb/* and tests/rdb/* files for more details

Change-Id: I2cfc5b903cfce81f8d0fbd891527bddd3a76a3c8
Reviewed-on: http://review.couchbase.org/35867
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Add read2 API

This adds an alternate read API for completion-style I/O. It uses
explicit buffer passing rather than implicitly relying on the deprecated
'readbuf' and 'bufinfo' structures within the sockdata_t

Change-Id: I3a17136b9a45b1581250a897e424e319bffbeaa6
Reviewed-on: http://review.couchbase.org/35869
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
mcreq: Free queue array on cleanup

Plugs a memory leak when the pipelines array was not freed

Change-Id: Ia0a0dc347ede504eabe8c3079d30e5824b2e04c2
Reviewed-on: http://review.couchbase.org/35870
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
make SOCKET => lcb_socket_t on win32

This breaks binary compat with 2.x. However this is the correct and
proper thing to do. SOCKET tends to be an unsigned long on windows,
while it's an int on unix.

Change-Id: I6f718f53ab1f0faf59cef617c27505d5965ea98c
Reviewed-on: http://review.couchbase.org/35871
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Define __declspec on mingw as well

Fixes some linker issues

Change-Id: I7cf88b5f8a0647d06fe62646c6f83330577da005
Reviewed-on: http://review.couchbase.org/35873
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Also set SHARED_LINKER_FLAGS for -static-libgcc

Avoids having to port libgcc to windows for simple runs

Change-Id: Ibc3345097965965ecd531b4fe41703bac9539418
Reviewed-on: http://review.couchbase.org/35874
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
vb-aliases: make more code-completion-friendly

This replaces the VB_* macro aliases for proper macro-style functions,
making them more visible to IDEs

Change-Id: I00370930e8991c93dbcdc953bddab6cbfba95774
Reviewed-on: http://review.couchbase.org/35875
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
cntl: sasl info is const char *

Fixes compilation warnings

Change-Id: Idb7bf6a42d596bb821de73543d9f5f52189311a2
Reviewed-on: http://review.couchbase.org/35876
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Add lcbio v2

This adds the next-generation LCB IO. This lives inside src/lcbio/* and
the tests consist of tests/ioserver (for the framework) and
tests/socktests (for the actual tests).

This commit does not adapt the core codebase to LCBIO, but rather simply
places it here.

Change-Id: Ib16e92b81874b5190f1f68393e7023547e9070af
Reviewed-on: http://review.couchbase.org/35877
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
UV: Remove bufinfo

Moving to a read2 model

Change-Id: I26ac8934887d836bb51073cc32e66f5e33d7c6ac
Reviewed-on: http://review.couchbase.org/35878
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
iocp: remove 'free_bufinfo'

Moving to a read2 model

Change-Id: I363a425ca30417bb0ddd609d1515905bcaf0e2a5
Reviewed-on: http://review.couchbase.org/35879
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Adapt to new lcbio_TABLE/lcb_settings refactor

Use helper APIs instead.

Change-Id: Ib277109462cb421c2c00b46ffba5753532bf4025
Reviewed-on: http://review.couchbase.org/35880
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
HTTP: Adapt to lcbio_CTX-based buffers

Change-Id: I638e43765f103477a1e4c8f62c73159802bc6400
Reviewed-on: http://review.couchbase.org/35882
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
bc_http: Adapt to lcbio_CTX-buffers

Change-Id: If6c396b3c98abd6ba7ded5305415114239734b6c
Reviewed-on: http://review.couchbase.org/35883
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Declare functions in utilties.c as INTERNAL_API

Fixes link failures on Win32

Change-Id: I90b19bea9b9b326e3ea8299e194a8f5ba963f9a5
Reviewed-on: http://review.couchbase.org/35884
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Fix some bugs in netbuf:

- start_flush: Returned IOV count off by one
- end_flush_2: Set PDU offset on partial flush
- document pdu callback better

Change-Id: I3e172dbd63c5a68721256857681ebca397ab3bf4
Reviewed-on: http://review.couchbase.org/35868
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
CCBC-386: Rewrite server.c and server_negotiate.c against lcbio2

Change-Id: Ic554525e952b2b70bd05b4694d5c31042fb5c549
Reviewed-on: http://review.couchbase.org/35881
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>
Sync with master

More accurate, consistent, and efficient managing of config updates.

Change-Id: Ia1302448d722e552a36da0a584fce83331e53a38
Reviewed-on: http://review.couchbase.org/35885
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>