From 637371b434cfc104c125b8a447f0dd15497aa5f9 Mon Sep 17 00:00:00 2001 From: Dana Powers Date: Fri, 23 Mar 2018 05:53:28 -0700 Subject: Fix KafkaConsumer docstring for request_timeout_ms default --- kafka/conn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kafka/conn.py') diff --git a/kafka/conn.py b/kafka/conn.py index 2320eea..cafc4b2 100644 --- a/kafka/conn.py +++ b/kafka/conn.py @@ -116,7 +116,7 @@ class BrokerConnection(object): resulting in a random range between 20% below and 20% above the computed value. Default: 1000. request_timeout_ms (int): Client request timeout in milliseconds. - Default: 40000. + Default: 30000. max_in_flight_requests_per_connection (int): Requests are pipelined to kafka brokers up to this number of maximum requests per broker connection. Default: 5. @@ -181,7 +181,7 @@ class BrokerConnection(object): DEFAULT_CONFIG = { 'client_id': 'kafka-python-' + __version__, 'node_id': 0, - 'request_timeout_ms': 40000, + 'request_timeout_ms': 30000, 'reconnect_backoff_ms': 50, 'reconnect_backoff_max_ms': 1000, 'max_in_flight_requests_per_connection': 5, -- cgit v1.2.1