summaryrefslogtreecommitdiff
path: root/python/qpid
diff options
context:
space:
mode:
Diffstat (limited to 'python/qpid')
-rw-r--r--python/qpid/client.py3
-rw-r--r--python/qpid/peer.py1
2 files changed, 4 insertions, 0 deletions
diff --git a/python/qpid/client.py b/python/qpid/client.py
index edcd1b8ad2..5734873c6f 100644
--- a/python/qpid/client.py
+++ b/python/qpid/client.py
@@ -126,6 +126,9 @@ class ClientDelegate(Delegate):
def message_append(self, ch, msg):
ch.references.get(msg.reference).append(msg.bytes)
+ def message_acquired(self, ch, msg):
+ ch.control_queue.put(msg)
+
def basic_deliver(self, ch, msg):
self.client.queue(msg.consumer_tag).put(msg)
diff --git a/python/qpid/peer.py b/python/qpid/peer.py
index 6ad5482f09..b9dd4e466a 100644
--- a/python/qpid/peer.py
+++ b/python/qpid/peer.py
@@ -190,6 +190,7 @@ class Channel:
self.completion = OutgoingCompletion()
self.incoming_completion = IncomingCompletion(self)
self.futures = {}
+ self.control_queue = Queue(0)#used for incoming methods that appas may want to handle themselves
# Use reliable framing if version == 0-9.
if spec.major == 0 and spec.minor == 9: