ZookeeperClient.close() should cancel scheduled_timeout

Bug #1243307 reported by Robert Thille
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
txzookeeper
New
Undecided
Unassigned

Bug Description

If a caller of ZookeeperClient attempts a connection, and then, before the connection completes calls ZookeeperClient.close(), the 'scheduled_timeout' (reactor.callLater() call back) is not cancelled and will cause the client to get a spurious errback() on the connect deferred.

the scheduled_timeout created here:
http://bazaar.launchpad.net/~juju/txzookeeper/trunk/view/head:/txzookeeper/client.py#L465
should be stored away so that it's accessible from close(), so it can be cancelled.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.