From 3c20c531712c067b040320d2fc48af915c8de112 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Mon, 4 May 2009 21:29:41 +0000 Subject: Fix issue with python clients to cluster, mis handling of channel 0. cpp/src/qpid/client/ConnectionImpl.cpp: allow 0 as a valid channel identifier. python/qpid/connection.py: don't use 0 as a channel identifier. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@771452 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/connection.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'python') diff --git a/python/qpid/connection.py b/python/qpid/connection.py index 3ab430587a..d4c5755219 100644 --- a/python/qpid/connection.py +++ b/python/qpid/connection.py @@ -123,8 +123,7 @@ class Connection(Assembler): self.lock.release() def __channel(self): - # XXX: ch 0? - for i in xrange(self.channel_max): + for i in xrange(1, self.channel_max): if not self.attached.has_key(i): return i else: -- cgit v1.2.1