Couchbase C client library libcouchbase

function lcb_wait works infinitly after trying to connect (by calling lcb_connect) to Couchbase server that is on Pending state