summaryrefslogtreecommitdiff
path: root/kafka/producer/kafka.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2018-01-10 17:25:33 -0800
committerGitHub <noreply@github.com>2018-01-10 17:25:33 -0800
commita69320b8e3199fa9d7cfa3947a242e699a045c3b (patch)
treeb9a3dce448c76605e9543f6ab61f6ea41d891d61 /kafka/producer/kafka.py
parent0a7492443c78d4791cfdf3d6384c02f1c7757c7b (diff)
downloadkafka-python-a69320b8e3199fa9d7cfa3947a242e699a045c3b.tar.gz
Read all available socket bytes (#1332)
* Recv all available network bytes before parsing * Add experimental support for configuring socket chunking parameters
Diffstat (limited to 'kafka/producer/kafka.py')
-rw-r--r--kafka/producer/kafka.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/kafka/producer/kafka.py b/kafka/producer/kafka.py
index e0c8a41..d24236a 100644
--- a/kafka/producer/kafka.py
+++ b/kafka/producer/kafka.py
@@ -292,6 +292,8 @@ class KafkaProducer(object):
'receive_buffer_bytes': None,
'send_buffer_bytes': None,
'socket_options': [(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)],
+ 'sock_chunk_bytes': 4096, # undocumented experimental option
+ 'sock_chunk_buffer_count': 1000, # undocumented experimental option
'reconnect_backoff_ms': 50,
'reconnect_backoff_max': 1000,
'max_in_flight_requests_per_connection': 5,