diff options
author | Dana Powers <dana.powers@gmail.com> | 2018-01-10 14:29:16 -0800 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2018-01-10 14:29:16 -0800 |
commit | 68776460f079bd28a8d694dcb32f5f62a1d52c4b (patch) | |
tree | 2cb1f105f0451f916c35f3fe7853153e904f45f9 /kafka | |
parent | 4116026fab0d514f880a1dfbd55791d7091a4b14 (diff) | |
download | kafka-python-conn_loop_bytes.tar.gz |
Comment indentconn_loop_bytes
Diffstat (limited to 'kafka')
-rw-r--r-- | kafka/client_async.py | 4 | ||||
-rw-r--r-- | kafka/conn.py | 6 | ||||
-rw-r--r-- | kafka/consumer/group.py | 4 | ||||
-rw-r--r-- | kafka/producer/kafka.py | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/kafka/client_async.py b/kafka/client_async.py index d9c2714..6c50a8c 100644 --- a/kafka/client_async.py +++ b/kafka/client_async.py @@ -152,8 +152,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 + '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', diff --git a/kafka/conn.py b/kafka/conn.py index 9dfe031..ba166bf 100644 --- a/kafka/conn.py +++ b/kafka/conn.py @@ -180,8 +180,8 @@ class BrokerConnection(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 + 'sock_chunk_bytes': 4096, # undocumented experimental option + 'sock_chunk_buffer_count': 1000, # undocumented experimental option 'security_protocol': 'PLAINTEXT', 'ssl_context': None, 'ssl_check_hostname': True, @@ -784,7 +784,7 @@ class BrokerConnection(object): self.close(e) return [] else: - return [resp for (_, resp) in responses] # drop correlation id + return [resp for (_, resp) in responses] # drop correlation id def requests_timed_out(self): if self.in_flight_requests: diff --git a/kafka/consumer/group.py b/kafka/consumer/group.py index 6e86979..0224d16 100644 --- a/kafka/consumer/group.py +++ b/kafka/consumer/group.py @@ -270,8 +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 + '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', diff --git a/kafka/producer/kafka.py b/kafka/producer/kafka.py index f2205fa..d24236a 100644 --- a/kafka/producer/kafka.py +++ b/kafka/producer/kafka.py @@ -292,8 +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 + '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, |