summaryrefslogtreecommitdiff
path: root/python/qpid/peer.py
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2007-09-27 18:57:22 +0000
committerRafael H. Schloming <rhs@apache.org>2007-09-27 18:57:22 +0000
commit5cf480a3cb1fcbaf54da0674ee1f7b1d57ded387 (patch)
tree1aea26d4ee671dacfcc8df33bf80fcb84e0fefbd /python/qpid/peer.py
parent36556639d68c39bb7b9362a69e21aa4159e6f1d9 (diff)
downloadqpid-python-5cf480a3cb1fcbaf54da0674ee1f7b1d57ded387.tar.gz
issue execution_sync rather than execution_flush prior to waiting for completion
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@580123 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/peer.py')
-rw-r--r--python/qpid/peer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/qpid/peer.py b/python/qpid/peer.py
index 68e1883692..5c05e71cf1 100644
--- a/python/qpid/peer.py
+++ b/python/qpid/peer.py
@@ -281,7 +281,7 @@ class Channel:
self.request(frame, self.queue_response, content)
if not frame.method.responses:
if self.use_execution_layer and frame.method_type.is_l4_command():
- self.execution_flush()
+ self.execution_sync()
self.completion.wait()
if self.closed:
raise Closed(self.reason)
@@ -335,12 +335,12 @@ class Channel:
return future
elif self.synchronous and not frame.method.response \
and self.use_execution_layer and frame.method.is_l4_command():
- self.execution_flush()
+ self.execution_sync()
completed = self.completion.wait(timeout=10)
if self.closed:
raise Closed(self.reason)
if not completed:
- self.close("Timed-out waiting for completion")
+ self.close("Timed-out waiting for completion of %s" % frame)
except QueueClosed, e:
if self.closed:
raise Closed(self.reason)