LCB_ERR_TIMEOUT(201) After Several Runs of client using C SDK

I’ve been running code that upserts JSON documents to our local Couchbase version 7 server on premises. I’m using the C SDK and GTest to run these tests currently all synchronous at the moment.

However, after several tests the upserts begin to error and the above specified error message LCB_ERR_TIMEOUT(201) is returned as an error message. As far as I’m aware all resources are being correctly cleared.

Are there caes where this has occurred previously, are there settings, fixes to resolve this timeout error.

Thanks.

timeout parameter - Managing Connections using the C SDK with Couchbase Server | Couchbase Docs