summaryrefslogtreecommitdiff
path: root/kafka/client_async.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2016-12-17 10:37:28 -0800
committerDana Powers <dana.powers@gmail.com>2017-01-19 11:10:04 -0800
commitd0f4abe05d02458ad8a4a19e75d1ec86fb67ab3e (patch)
tree3d124cc5b2d4c3a668404f57ffd76846cea38e06 /kafka/client_async.py
parent7df120d7ce4f3cb429cdfb7b246d41d744b30e6c (diff)
downloadkafka-python-d0f4abe05d02458ad8a4a19e75d1ec86fb67ab3e.tar.gz
Pass error to BrokerConnection.close()
Diffstat (limited to 'kafka/client_async.py')
-rw-r--r--kafka/client_async.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kafka/client_async.py b/kafka/client_async.py
index bb96578..6179eba 100644
--- a/kafka/client_async.py
+++ b/kafka/client_async.py
@@ -557,7 +557,7 @@ class KafkaClient(object):
log.warning('Protocol out of sync on %r, closing', conn)
except socket.error:
pass
- conn.close()
+ conn.close(Errors.ConnectionError('Socket EVENT_READ without in-flight-requests'))
continue
# Accumulate as many responses as the connection has pending