summaryrefslogtreecommitdiff
path: root/kafka/producer/kafka.py
diff options
context:
space:
mode:
authorJeff Widman <jeff@jeffwidman.com>2018-06-26 12:47:12 -0700
committerJeff Widman <jeff@jeffwidman.com>2018-06-26 12:48:41 -0700
commit9ac3cb1ec220ff9968a8b003b02e98dd11cc486b (patch)
tree6290be5e8e5b99eb29bf996a97de6e2ab445896b /kafka/producer/kafka.py
parentbc4cc434cddf403a35d0393d68ecfdbfad17c8e5 (diff)
downloadkafka-python-9ac3cb1ec220ff9968a8b003b02e98dd11cc486b.tar.gz
Document connections_max_idle_ms
This was added in #1068 but never documented. Fix #1497
Diffstat (limited to 'kafka/producer/kafka.py')
-rw-r--r--kafka/producer/kafka.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/kafka/producer/kafka.py b/kafka/producer/kafka.py
index 7d52bdf..719acef 100644
--- a/kafka/producer/kafka.py
+++ b/kafka/producer/kafka.py
@@ -171,6 +171,11 @@ class KafkaProducer(object):
will block up to max_block_ms, raising an exception on timeout.
In the current implementation, this setting is an approximation.
Default: 33554432 (32MB)
+ connections_max_idle_ms: Close idle connections after the number of
+ milliseconds specified by this config. The broker closes idle
+ connections after connections.max.idle.ms, so this avoids hitting
+ unexpected socket disconnected errors on the client.
+ Default: 540000
max_block_ms (int): Number of milliseconds to block during
:meth:`~kafka.KafkaProducer.send` and
:meth:`~kafka.KafkaProducer.partitions_for`. These methods can be