From 6c213d62b6ffb52decfb58b57eef41963e570244 Mon Sep 17 00:00:00 2001 From: Dana Powers Date: Mon, 15 Feb 2016 11:05:41 -0800 Subject: [PATCH] Fixup RequestTimeoutError -> RequestTimedOutError --- kafka/client_async.py | 2 +- kafka/producer/base.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kafka/client_async.py b/kafka/client_async.py index 844d3b3..25ef29f 100644 --- a/kafka/client_async.py +++ b/kafka/client_async.py @@ -633,7 +633,7 @@ class KafkaClient(object): # If the socket flush hack did not work (which should force the # connection to close and fail all pending requests), then we # get a basic Request Timeout. Thisisn - if isinstance(f.exception, Errors.RequestTimeoutError): + if isinstance(f.exception, Errors.RequestTimedOutError): pass elif six.PY2: assert isinstance(f.exception.args[0], socket.error) diff --git a/kafka/producer/base.py b/kafka/producer/base.py index 506da83..9720390 100644 --- a/kafka/producer/base.py +++ b/kafka/producer/base.py @@ -250,7 +250,7 @@ class Producer(object): async_retry_backoff_ms (int, optional): milliseconds to backoff on failed messages, defaults to 100. async_retry_on_timeouts (bool, optional): whether to retry on - RequestTimeoutError, defaults to True. + RequestTimedOutError, defaults to True. async_queue_maxsize (int, optional): limit to the size of the internal message queue in number of messages (not size), defaults to 0 (no limit).