seth/pooler — pull request #8 by kevsmith (2012-10-01 21:14:39+00:00)
Title: Adding backpressure & timeout protection

Adding backpressure to return_member operations by converting
those messages from cast to call. This prevents a pool from losing
members faster than it can receive them by slowing down the callers.
I think this also eliminates a race condition where a caller can return an
entity to the pool via cast and then later crash sending an 'EXIT'
message to the pool because the pool hasn't yet dequeued the
return_member message.

Also lengthened all timeouts to infinty to allow performance to slowly
degrade instead of going out with a bang when the gen_server message
times out.