summaryrefslogtreecommitdiff
path: root/qpid/python/qpid/client.py
diff options
context:
space:
mode:
authorAlex Rudyy <orudyy@apache.org>2015-06-05 13:37:53 +0000
committerAlex Rudyy <orudyy@apache.org>2015-06-05 13:37:53 +0000
commite494a245b2174915f13eaadc45566e0467c96bb9 (patch)
treeb05deac1a7fb0499c6c764790b494c0634b2d1cb /qpid/python/qpid/client.py
parentdf9eb5f63c04baa2f5c7ecec61635537f64d9013 (diff)
downloadqpid-python-e494a245b2174915f13eaadc45566e0467c96bb9.tar.gz
QPID-6567: [Python Client 0-8..0-91] ensure client won't send messages after/before sending flow-ok on suspending/resuming respectively. work by Lorenz Quack <quack.lorenz@gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1683751 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/qpid/client.py')
-rw-r--r--qpid/python/qpid/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/python/qpid/client.py b/qpid/python/qpid/client.py
index 3bbc097d25..5fedaa2cb1 100644
--- a/qpid/python/qpid/client.py
+++ b/qpid/python/qpid/client.py
@@ -208,12 +208,12 @@ class ClientDelegate(Delegate):
ch.closed(msg)
def channel_flow(self, ch, msg):
- # On resuming we want to minimize the possibility of sending a message before flow-ok has been sent.
+ # On resuming we don't want to send a message before flow-ok has been sent.
# Therefore, we send flow-ok before we set the flow_control flag.
if msg.active:
msg.flow_ok()
ch.set_flow_control(not msg.active)
- # On pausing we want to minimize the possibility of sending a message after flow-ok has been sent.
+ # On suspending we don't want to send a message after flow-ok has been sent.
# Therefore, we send flow-ok after we set the flow_control flag.
if not msg.active:
msg.flow_ok()