Skip to content

Comments

Manage session expirations with connection timeout#407

Closed
ralt wants to merge 1 commit intopython-zk:masterfrom
ralt:session-expiration-during-connection
Closed

Manage session expirations with connection timeout#407
ralt wants to merge 1 commit intopython-zk:masterfrom
ralt:session-expiration-during-connection

Conversation

@ralt
Copy link
Contributor

@ralt ralt commented Oct 18, 2016

Before this change, kazoo is getting a TimeoutError (transformed into a
ConnectionDropped error by the _socket_error_handling manager), which
doesn't let the zk loop know that it should stop connecting, even long
after the session has expired. It means that kazoo was forever looping,
trying to get a new connection.

Before this change, kazoo is getting a TimeoutError (transformed into a
ConnectionDropped error by the _socket_error_handling manager), which
doesn't let the zk loop know that it should stop connecting, even long
after the session has expired. It means that kazoo was forever looping,
trying to get a new connection.
@ralt
Copy link
Contributor Author

ralt commented Oct 21, 2016

Sorry, this is against the ZK protocol as defined here: https://zookeeper.apache.org/doc/trunk/zookeeperProgrammers.html#ch_zkSessions

Closing.

@ralt ralt closed this Oct 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant