diff options
author | Dana Powers <dana.powers@rd.io> | 2015-03-02 09:35:04 -0800 |
---|---|---|
committer | Dana Powers <dana.powers@rd.io> | 2015-03-02 09:35:04 -0800 |
commit | 83d28ba79a5453abf0530e403c125e51b9d3641c (patch) | |
tree | 649e3614d735798abf4236be02694dbeb110875d /kafka/client.py | |
parent | 082cda6a7235df15d38102556f7bfe09e43b39fa (diff) | |
download | kafka-python-83d28ba79a5453abf0530e403c125e51b9d3641c.tar.gz |
Add comment about no server response case in _send_broker_aware_request
Diffstat (limited to 'kafka/client.py')
-rw-r--r-- | kafka/client.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kafka/client.py b/kafka/client.py index 53b6ad0..6c6e74f 100644 --- a/kafka/client.py +++ b/kafka/client.py @@ -178,8 +178,13 @@ class KafkaClient(object): # Send the request, recv the response try: conn.send(requestId, request) + + # decoder_fn=None signal that the server is expected to not + # send a response. This probably only applies to + # ProduceRequest w/ acks = 0 if decoder_fn is None: continue + try: response = conn.recv(requestId) except ConnectionError as e: |