yaauie/redisrpc — pull request #1 by robatsimplymeasured (2012-04-23 17:03:01+00:00)
Title: A timeout will help ensure we don't end up in a state where it's indefinitely blocked (aka stuck)

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?)