summaryrefslogtreecommitdiff
path: root/kafka/consumer/group.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/consumer/group.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/consumer/group.py')
-rw-r--r--kafka/consumer/group.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/kafka/consumer/group.py b/kafka/consumer/group.py
index 7c345e7..0224d16 100644
--- a/kafka/consumer/group.py
+++ b/kafka/consumer/group.py
@@ -270,6 +270,8 @@ class KafkaConsumer(six.Iterator):
'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
'consumer_timeout_ms': float('inf'),
'skip_double_compressed_messages': False,
'security_protocol': 'PLAINTEXT',