diff options
author | Dana Powers <dana.powers@gmail.com> | 2016-12-17 10:37:28 -0800 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2017-01-07 10:18:20 -0800 |
commit | cb5e7b80ba024b974c2c9f7239181a4094d64f77 (patch) | |
tree | a0399e16d75dfe6a1f7a64e51d5f0e511ca1eb31 /kafka/client_async.py | |
parent | cfb5f0e285a7ad549c88af092d70296ca31f1e56 (diff) | |
download | kafka-python-cb5e7b80ba024b974c2c9f7239181a4094d64f77.tar.gz |
Pass error to BrokerConnection.close()
Diffstat (limited to 'kafka/client_async.py')
-rw-r--r-- | kafka/client_async.py | 2 |
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 |