qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmora...@apache.org
Subject svn commit: r1602221 - /qpid/trunk/qpid/python/qpid/messaging/endpoints.py
Date Thu, 12 Jun 2014 16:27:19 GMT
Author: pmoravec
Date: Thu Jun 12 16:27:19 2014
New Revision: 1602221

URL: http://svn.apache.org/r1602221
Log:
QPID-5812: python high level API client receiver.fetch(timeout=N) blocks forever in select()
if broker is stopped (kill -STOP)

Modified:
    qpid/trunk/qpid/python/qpid/messaging/endpoints.py

Modified: qpid/trunk/qpid/python/qpid/messaging/endpoints.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/qpid/messaging/endpoints.py?rev=1602221&r1=1602220&r2=1602221&view=diff
==============================================================================
--- qpid/trunk/qpid/python/qpid/messaging/endpoints.py (original)
+++ qpid/trunk/qpid/python/qpid/messaging/endpoints.py Thu Jun 12 16:27:19 2014
@@ -1039,7 +1039,7 @@ class Receiver(Endpoint, object):
       self.check_closed()
       self.draining = True
       self._wakeup()
-      self._ecwait(lambda: not self.draining)
+      self._ecwait(lambda: not self.draining, timeout=0)
       msg = self.session._get(self, timeout=0)
       self._grant()
       self._wakeup()



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message