kazoo icon indicating copy to clipboard operation
kazoo copied to clipboard

Successive calls to `start_async` deadlock

Open gaohuazuo opened this issue 6 years ago • 1 comments

On kazoo 2.5 (current pip version), calling start_async twice in a row will cause the second call block indefinitely.

import kazoo.client
client = kazoo.client.KazooClient()
client.start_async(); client.start_async()

gaohuazuo avatar Nov 16 '18 09:11 gaohuazuo

Hi, thanks for your issue.

Kazoo 2.6.0 is available since yesterday but it does not address this issue.

My guess is that we should detect if the client is already connected or not. PR are welcomed if you have some times to fix this.

StephenSorriaux avatar Nov 16 '18 10:11 StephenSorriaux