summaryrefslogtreecommitdiff
path: root/kafka/client_async.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/client_async.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/client_async.py')
-rw-r--r--kafka/client_async.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/kafka/client_async.py b/kafka/client_async.py
index 0058cf3..29cb8c0 100644
--- a/kafka/client_async.py
+++ b/kafka/client_async.py
@@ -154,6 +154,8 @@ class KafkaClient(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
'retry_backoff_ms': 100,
'metadata_max_age_ms': 300000,
'security_protocol': 'PLAINTEXT',