samuel/go-zookeeper — pull request #38 by tailhook (2014-11-13 10:34:26+00:00)
Title: Fix continuous loop of connect attempts

Sometimes zookeeper just drops connection on invalid session data,
we prefer to drop session and start from scratch when that event
occurs instead of dropping into loop of connect/disconnect attempts.

This can be emulated by stopping zookeeper, cleaning it's database and
starting it again. But we experience same bug in production without
cleaning zookeeper, but in case of network partition (not every partition
event).