diff options
author | Dana Powers <dana.powers@gmail.com> | 2018-03-23 08:21:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-23 08:21:44 -0700 |
commit | c0fddbd24269d4333e3b6630a23e86ffe33dfcb6 (patch) | |
tree | f0bf816cb7737405ece0683fe9905dcbb45964d5 /kafka/conn.py | |
parent | b62006aeb86258b4b1ef2735bebb1fe99459b82d (diff) | |
download | kafka-python-c0fddbd24269d4333e3b6630a23e86ffe33dfcb6.tar.gz |
Fix KafkaConsumer docstring for request_timeout_ms default (#1459)
Diffstat (limited to 'kafka/conn.py')
-rw-r--r-- | kafka/conn.py | 4 |
1 files changed, 2 insertions, 2 deletions
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, |