A timeout will help ensure we don't end up in a state where it's indefinitely blocked (aka stuck) #1

Merged
merged 1 commit into from Apr 23, 2012

Projects

None yet

1 participant

@ghost

blpop (at least on JRuby) ends up in a state where it never pops an item off the queue, even though there is plenty waiting for a response. Ensure a timeout and restart the loop to make sure we never block for more than 5 seconds. (Perhaps this should be configurable?)

Rob Roland A timeout will help ensure we don't end up in a state
where it's indefinitely blocked (aka stuck)
a0df5d8
@yaauie yaauie merged commit a0df5d8 into yaauie:safety Apr 23, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment