-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If connection is down, make Bunny::Queues#pop return empty responses
To support the same edge case with Bunny::Queue#pop being called in a tight loop when network connection goes down. It is better to return something immediately rather than keep blocking the thread we have no easy way to unblock with the current "blocking pop" approach that replaces not-entirely-correct wait/notify implementation.
- Loading branch information
Michael Klishin
committed
Jan 16, 2013
1 parent
89055e5
commit 0f5ba46
Showing
1 changed file
with
15 additions
and
4 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