Skip to content

Commit 37ed766

Browse files
committed
Reduce internal client poll timeout for consumer interator interface
1 parent f6a8a38 commit 37ed766

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kafka/consumer/group.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,8 +1070,7 @@ def _message_generator(self):
10701070
self._update_fetch_positions(partitions)
10711071

10721072
poll_ms = 1000 * (self._consumer_timeout - time.time())
1073-
if not self._fetcher.in_flight_fetches():
1074-
poll_ms = min(poll_ms, self.config['reconnect_backoff_ms'])
1073+
poll_ms = min(poll_ms, self.config['retry_backoff_ms'])
10751074
self._client.poll(timeout_ms=poll_ms)
10761075

10771076
# after the long poll, we should check whether the group needs to rebalance

0 commit comments

Comments
 (0)