We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7fa073 commit 254dcacCopy full SHA for 254dcac
kafka/conn.py
@@ -598,6 +598,13 @@ def connect():
598
# get a basic Request Timeout. This is not ideal, but we'll deal
599
if isinstance(f.exception, Errors.RequestTimedOutError):
600
pass
601
+
602
+ # 0.9 brokers do not close the socket on unrecognized api
603
+ # requests (bug...). In this case we expect to see a correlation
604
+ # id mismatch
605
+ elif (isinstance(f.exception, Errors.CorrelationIdError) and
606
+ version == '0.10'):
607
+ pass
608
elif six.PY2:
609
assert isinstance(f.exception.args[0], socket.error)
610
assert f.exception.args[0].errno in (32, 54, 104)
0 commit comments