summaryrefslogtreecommitdiff
path: root/python/qpid/driver.py
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2010-02-16 03:48:44 +0000
committerRafael H. Schloming <rhs@apache.org>2010-02-16 03:48:44 +0000
commita127cedac14989a730c08ffb7660d8566991f6a3 (patch)
treecbbb14d04a6e2a99ff1ebc9eb4e1aab61c282e5c /python/qpid/driver.py
parent0c3950cee69412bd3b7c1790fd452799af25d5da (diff)
downloadqpid-python-a127cedac14989a730c08ffb7660d8566991f6a3.tar.gz
changed sender/receiver to be synchronous by default when invoked on a connected session
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@910388 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/driver.py')
-rw-r--r--python/qpid/driver.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/qpid/driver.py b/python/qpid/driver.py
index 03ba85aa39..2eef9db06c 100644
--- a/python/qpid/driver.py
+++ b/python/qpid/driver.py
@@ -560,6 +560,8 @@ class Driver:
self.delete(sst, _snd.name, do_unlink)
else:
do_unlink()
+ elif not snd.linked and snd.closing and not snd.closed:
+ snd.closed = True
def link_in(self, rcv):
sst = self._attachments.get(rcv.session)
@@ -633,6 +635,8 @@ class Driver:
else:
sst.write_cmd(MessageCancel(_rcv.destination), do_unlink)
_rcv.canceled = True
+ elif not rcv.linked and rcv.closing and not rcv.closed:
+ rcv.closed = True
POLICIES = Values("always", "sender", "receiver", "never")