NULL isn't standard thing, so require stdlib.h

Change-Id: Ib92fef78fd2c4164e9394ab7b640501308f064cb
Reviewed-on: http://review.couchbase.org/25286
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
ssize_t ==> lcb_ssize_t

Change-Id: Ibe8ebc44b99ed83d7097429d28c54c5d6df7629b
Reviewed-on: http://review.couchbase.org/25287
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Fix build for FreeBSD

* use /usr/local directory as default prefix for FreeBSD
* include CFLAGS, LDFLAGS, CPPFLAGS to AM_* equivalents
* check that dtrace command is actually working, not just present in
  the system

Change-Id: Ic12e70fe1417ec2c3c7fc4d86e30ff83aab640ee
Reviewed-on: http://review.couchbase.org/25289
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Aaron Hurt <ahurt@anbcs.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Fix lcb_set_store_callback() signature in man page

Change-Id: I03554ad98de1fd51589870d18b9e2be59ed23909
Reviewed-on: http://review.couchbase.org/25295
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Fix manpages for HTTP callbacks

Change-Id: I6017d7569b610a08f3342a2b3db6572fea5bcc45
Reviewed-on: http://review.couchbase.org/25385
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
NUL-terminate config cache buffer after reading

Change-Id: I61f47e05af500d6216f45d1e0c6e8f5f2f0d8105
Reviewed-on: http://review.couchbase.org/25372
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
Update meta data for release 2.0.5

Change-Id: Ie58024614ffa8076405f6e1862192e98a9767d69
Reviewed-on: http://review.couchbase.org/25499
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Added fallback to libdir to search for so

Change-Id: I643c4c2b70972f11432b937946457f45fcba27c7
Reviewed-on: http://review.couchbase.org/25507
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
CCBC-190: Config cache issues during conf changes

This fixes several issues relating to configuration changes while using
a cached configuration.

This also handles CCBC-195, CCBC-196, CCBC-197, and partially handles
CCBC-198.

Change-Id: Iadd9099087f119ac659326c88edbad9456fc753a
Reviewed-on: http://review.couchbase.org/25420
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Minor fix for phrasing on the pillowfight note.

Change-Id: I6a6bc65d43e4f919a4eaa62fe2e267d36a278dcf
Reviewed-on: http://review.couchbase.org/25519
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
Don't invoke HTTP callbacks after cancellation

Otherwise, user code might assume a previously-freed resource is still
valid

Change-Id: I7cfdea8b9c9544d24622bb92e419096e97aa8a37
Reviewed-on: http://review.couchbase.org/25520
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
Fix compile error with sun studio

"src/event.c", line 172: error: statement not reached (E_STATEMENT_NOT_REACHED)

Change-Id: Iee46423f254351042031d5656964fd439508608a
Reviewed-on: http://review.couchbase.org/25726
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Allow a direct write mode

Change-Id: I2ec94437f24e0c7e4da91db03015e5e0c6057bc2
Reviewed-on: http://review.couchbase.org/25736
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Revert "Allow a direct write mode"

This patch is not needed anymore

This reverts commit ecef9852806b397a41fdd223a5ef85de80be2514.

Change-Id: I9450c9ad7117b33a496d0626df294eaace318d70
Reviewed-on: http://review.couchbase.org/25779
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Add Host header in http request

http://cbugg.hq.couchbase.com/bug/bug-555 points out that Host
is a required field in HTTP 1.1

Change-Id: I8576796ace691439aac512985fc0d038a20baef7
Reviewed-on: http://review.couchbase.org/25822
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Fix buffer overrun

Change-Id: Ia0c5f5559b926e2fc76a5f1557eac5ce1e01ef97
Reviewed-on: http://review.couchbase.org/25824
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
CCBC-188 Check if SASL struct valid before disposing

Change-Id: I218360b4b17e0e2a3abe621343531cd9502ef7f7
Reviewed-on: http://review.couchbase.org/25851
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tune dump program a bit

Change-Id: I9097cf8246dcef5138f3c9a49fe17bbb15d5a23d
Reviewed-on: http://review.couchbase.org/25914
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
CCBC-202: Don't try to switch to backup nodes when timeout is reached

Change-Id: I8333218058229a3988c4c69eafff959e06ec9400
Reviewed-on: http://review.couchbase.org/25711
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
example/yajl/couchview.c: pass cookie to the command

Fixes coredump when executing ./examples/yajl/couchview

Change-Id: I883b304afa4b26e074923ce522184d236b44e036
Reviewed-on: http://review.couchbase.org/26093
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>