diff options
author | Stephen D. Huston <shuston@apache.org> | 2011-10-20 18:42:46 +0000 |
---|---|---|
committer | Stephen D. Huston <shuston@apache.org> | 2011-10-20 18:42:46 +0000 |
commit | 5eb354b338bb8d8fcd35b6ac3fb33f8103e757c3 (patch) | |
tree | f24776684c025fbed6a0431bf3d6811f0a1aae7a /python/qpid/messaging/endpoints.py | |
parent | 718ff5b34dd1e87eb79fa4c61fec668d1dc33103 (diff) | |
download | qpid-python-5eb354b338bb8d8fcd35b6ac3fb33f8103e757c3.tar.gz |
Merge trunk to QPID-2519 branch
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/QPID-2519@1186990 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/messaging/endpoints.py')
-rw-r--r-- | python/qpid/messaging/endpoints.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/qpid/messaging/endpoints.py b/python/qpid/messaging/endpoints.py index b8101b76e6..338ac70ecf 100644 --- a/python/qpid/messaging/endpoints.py +++ b/python/qpid/messaging/endpoints.py @@ -158,6 +158,7 @@ class Connection(Endpoint): self.reconnect_log = options.get("reconnect_log", True) self.address_ttl = options.get("address_ttl", 60) + self.tcp_nodelay = options.get("tcp_nodelay", False) self.options = options @@ -197,7 +198,7 @@ class Connection(Endpoint): return result def check_closed(self): - if self.closed: + if not self._connected: self._condition.gc() raise ConnectionClosed() @@ -1006,9 +1007,9 @@ class Receiver(Endpoint, object): self.draining = True self._wakeup() self._ecwait(lambda: not self.draining) + msg = self.session._get(self, timeout=0) self._grant() self._wakeup() - msg = self.session._get(self, timeout=0) if msg is None: raise Empty() elif self._capacity not in (0, UNLIMITED.value): |