I would like to reopen this thread. The fact that no event ZOO_EXPIRED_SESSION_STATE is triggered after a certain amount of time when the server is offline is a serious problem.
In my company, we also using the c client in a single thread (as part of the node-zookeeper module) but we decided to use the patched version created by yunong to deal with this problem of session expiration. What is blocking the integration of the patch proposed by yunoung ? This patch has a great value for us. Anthony.