sgroschupf/zkclient — pull request #26 by metacret (2014-08-17 18:30:52+00:00)
Title: ZkClient should reset connection on reconnection timeout to invalidate DNS cache

This issue is related with https://issues.apache.org/jira/browse/ZOOKEEPER-338 which is unresolved.
In the AWS EC2 environment, when the zookeeper EC2 instances are terminated and replaced by a new one, its IP address binding with hostname is changed. So, waitUntilConnected forever on ConnectionLossException or session expiration cannot reconnect to new zookeeper instance whose new IP address bound to the hostname. So, if the connection timeout happens, it should reset connection to invalidate DNS cache on Zookeeper instance.