diff options
| author | Alan Conway <aconway@apache.org> | 2009-05-04 21:29:41 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2009-05-04 21:29:41 +0000 |
| commit | 3c20c531712c067b040320d2fc48af915c8de112 (patch) | |
| tree | b78e07eed9fa2bf9f5412ccdc6eb3ae772f253a4 /python | |
| parent | 5a769bdde526fa83c317ad4feb7d9ac0351eeea9 (diff) | |
| download | qpid-python-3c20c531712c067b040320d2fc48af915c8de112.tar.gz | |
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
Diffstat (limited to 'python')
| -rw-r--r-- | python/qpid/connection.py | 3 |
1 files changed, 1 insertions, 2 deletions
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: |
