summaryrefslogtreecommitdiff
path: root/kafka/client_async.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2018-11-10 12:45:01 -0800
committerGitHub <noreply@github.com>2018-11-10 12:45:01 -0800
commit0a2ccba3cb1b8636f615a30821123720773a8dfa (patch)
tree41c244e136c3f02c3d811019f8da90b1cfd6fb34 /kafka/client_async.py
parent9d44e3cf8b6a75b11f1087282157aa48eba68a64 (diff)
downloadkafka-python-0a2ccba3cb1b8636f615a30821123720773a8dfa.tar.gz
(Attempt to) Fix deadlock between consumer and heartbeat (#1628)
Diffstat (limited to 'kafka/client_async.py')
-rw-r--r--kafka/client_async.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/kafka/client_async.py b/kafka/client_async.py
index ccf1e4b..0cb575c 100644
--- a/kafka/client_async.py
+++ b/kafka/client_async.py
@@ -571,9 +571,7 @@ class KafkaClient(object):
self._poll(timeout)
- # called without the lock to avoid deadlock potential
- # if handlers need to acquire locks
- responses.extend(self._fire_pending_completed_requests())
+ responses.extend(self._fire_pending_completed_requests())
# If all we had was a timeout (future is None) - only do one poll
# If we do have a future, we keep looping until it is done