Add comment about no server response case in _send_broker_aware_request

This commit is contained in:
Dana Powers
2015-03-02 09:35:04 -08:00
parent 082cda6a72
commit 83d28ba79a

View File

@@ -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: