Michi Mutsuzaki commented on ZOOKEEPER-826:

It's related to this ticket:


Inside zoo_add_auth() function, send_last_auth_info() gets called if the handle 
is in ZOO_CONNECTED_STATE or ZOO_ASSOCIATING_STATE. However, it doesn't get 
called if it's in ZOO_CLOSED_STATE, which is usually the case right after 
zookeeper_init() returns. 


> cli.c should not call zoo_add_auth immediately after zookeeper_init() 
> ----------------------------------------------------------------------
>                 Key: ZOOKEEPER-826
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-826
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: c client
>    Affects Versions: 3.3.1
>            Reporter: Michi Mutsuzaki
>            Priority: Minor
> In cli.c, zoo_add_auth() gets called right after zookeeper_init(). Instead, 
> zoo_add_auth() should be called in the callback after the connection is 
> established. 
> --Michi

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

Reply via email to