GitHub user luoxn28 opened a pull request: https://github.com/apache/zookeeper/pull/472
clean resource when the client node is not learner. When the client node is not learner, close the socket. otherwise `leader.addLearnerHandler(this)`. You can merge this pull request into a Git repository by running: $ git pull https://github.com/luoxn28/zookeeper master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/zookeeper/pull/472.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #472 ---- commit f67f9dfdf46715ca3ed6985339d4e8faab58a021 Author: luoxn28 <luoxn28@...> Date: 2018-02-22T08:56:41Z clean resource when the client node is not learner. ---- ---