title: Sync kafka producer send still got 0 secs timeout?
body: <p>I have the following code in a Python script</p>
  <pre><code>from kafka import KafkaProducer
  
  kafka_producer = KafkaProducer(....)
  
  kafka_producer.send(topic, value=message)
  kafka_producer.flush()
  
  logger.info('Done!') # this message is displayed
  </code></pre>
  <p>However, I still saw the following messsage. It seems the message was sent successfully. Why the message of &quot;0 secs timeout&quot; is displayed even if <code>flush()</code> is called?</p>
  <blockquote>
  <p>INFO:root:Done!</p>
  </blockquote>
  <blockquote>
  <p>INFO:kafka.producer.kafka:Closing the Kafka producer with 0 secs timeout.</p>
  </blockquote>
  <blockquote>
  <p>INFO:kafka.producer.kafka:Proceeding to force close the producer since pending requests could not be completed within timeout 0.</p>
  </blockquote>
  <blockquote>
  <p>INFO:kafka.conn:&lt;BrokerConnection node_id=2 host=....  [IPv4('....', 9092)]&gt;: Closing connection.</p>
  </blockquote>