samuel / go-zookeeper

Native ZooKeeper client for Go. This project is no longer maintained. Please use https://github.com/go-zookeeper/zk instead.
BSD 3-Clause "New" or "Revised" License
1.64k stars 672 forks source link

Fix: quick recover from old client state which was recognized by zookeeper #243

Closed cnutshell closed 4 years ago

cnutshell commented 4 years ago

In zookeeper 3.4.5, If zookeeper service discover an old client, it would close that connection. Client binding would get EOF when reading from that connection. I think that EOF should be considered as ErrSessionExpired.