You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by pm...@apache.org on 2014/06/12 18:27:19 UTC
svn commit: r1602221 - /qpid/trunk/qpid/python/qpid/messaging/endpoints.py
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