useful information from libcouchbase

Merge nakrakiiya's fix