ZookeeperClient.close() doesn't for the first connection

Bug #1038050 reported by Alex Brasetvik
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
txzookeeper
In Progress
Medium
Kapil Thangavelu

Bug Description

zookeeper.init returns 0 as the handle for the first connection initialized.

The check for a handle in ZookeeperClient.close erroneously checks `if not self.handle` (and self.handle is falsy when 0) instead of `if self.handle is None` like the other checks. Consequently, the underlying connection is not closed.

Revision history for this message
Alex Brasetvik (alex-brasetvik) wrote :
description: updated
Changed in txzookeeper:
assignee: nobody → Kapil Thangavelu (hazmat)
Revision history for this message
Alex Brasetvik (alex-brasetvik) wrote :

Anything more I can do to help getting this in? :)

Changed in txzookeeper:
status: New → In Progress
importance: Undecided → Medium
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.