# Reg: cdb\_diff\_iterate cdb\_get\_phase and cdb\_set\_namespace blocking!

**URL:** https://dmap-community.ductus.global/t/reg-cdb-diff-iterate-cdb-get-phase-and-cdb-set-namespace-blocking/1368
**Category:** CDB and CDB API
**Created:** [June 28, 2017, 7:08am UTC](https://dmap-community.ductus.global/t/reg-cdb-diff-iterate-cdb-get-phase-and-cdb-set-namespace-blocking/1368 "2017-06-28T07:08:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bkannadassan](https://avatars.discourse-cdn.com/v4/letter/b/f6c823/32.png) [@bkannadassan](https://dmap-community.ductus.global/u/bkannadassan)
#### Post date: [June 28, 2017, 7:08am UTC](https://dmap-community.ductus.global/t/reg-cdb-diff-iterate-cdb-get-phase-and-cdb-set-namespace-blocking/1368/1 "2017-06-28T07:08:53Z")

</div>

Hi All!

We do have a scenario where above calls are blocking for a long time. Please let us know is their anyway we can control timeout for these rather then blocking for a long time. We would like to know following.

1. How long does the above api block ?
2. How to control their timeout if no response from confd ?.
3. What could be the reason for these blocking ?

rgds  
Balaji

---

<div class="post-metadata">

### Author: ![waitai](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/waitai/32/436_2.png) [@waitai](https://dmap-community.ductus.global/u/waitai)
#### Post date: [June 28, 2017, 10:55pm UTC](https://dmap-community.ductus.global/t/reg-cdb-diff-iterate-cdb-get-phase-and-cdb-set-namespace-blocking/1368/2 "2017-06-28T22:55:28Z")

</div>

Refer to [Is there a way to control the CDB client timeout interval?](https://discuss.tail-f.com/t/is-there-a-way-to-control-the-cdb-client-timeout-interval/131?u=waitai) for information on the CDB client timeout configurable setting.

Threads cannot share socket connections to ConfD as it may cause unpredictable results. Refer to [confD Multi-threading](https://discuss.tail-f.com/t/confd-multi-threading/539/2?u=waitai) for information on multi-threading and sockets.

---

<div class="post-metadata">

### Author: ![bkannadassan](https://avatars.discourse-cdn.com/v4/letter/b/f6c823/32.png) [@bkannadassan](https://dmap-community.ductus.global/u/bkannadassan)
#### Post date: [August 21, 2017, 6:07am UTC](https://dmap-community.ductus.global/t/reg-cdb-diff-iterate-cdb-get-phase-and-cdb-set-namespace-blocking/1368/3 "2017-08-21T06:07:37Z")

</div>

Guys any help on the same ?..
