Skip to content

Commit

Permalink
reader: dont redistribute when there arent any connections
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed Sep 24, 2014
1 parent e7b7664 commit e6c6260
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nsq/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,8 @@ def _redistribute_rdy_state(self):
# At a high level, we're trying to mitigate stalls related to low-volume
# producers when we're unable (by configuration or backoff) to provide a RDY count
# of (at least) 1 to all of our connections.
if not self.conns:
return

if self.disabled() or self.backoff_block:
return
Expand Down

0 comments on commit e6c6260

Please sign in to comment.