-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
consumer: Deal with case where no connections during backoff.
This fixes the following scenario: 1. Consumer is connected to one NSQD host using ConnectToNSQD. 2. Consumer receives message and handler returns an error. 3. Consumer backs off. 4. DisconnectFromNSQD called before backoff closure wakes up. 5. Backoff closure wakes up, sees no connections, returns. 6. Consumer connects to NSQD host using ConnectToNSQD. 7. backoffCounter still > 0 so never sends RDY count (in maybeUpdateRDY). 8. Consumer is now stuck and never sends RDY > 0.
- Loading branch information
Ryan Slade
committed
Feb 3, 2015
1 parent
c1b1bb2
commit 324136f
Showing
1 changed file
with
27 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters