cloudant/rexi — pull request #19 by kocolosk (2013-10-25 13:57:01+00:00)
Title: Cancel late-arriving streaming workers

This patch causes rexi's receive loop to cancel any workers that try to initialize a stream when they're not part of the current worker set. Previously we used to ignore them and let them timeout.

The patch is not bulletproof; a worker could initialize a stream after the receive loop has completed. If the process running the receive loop does not enter another receive loop the worker will eventually timeout. It's an intermediate improvement, though. Putting it up for comments.

BugzID: 24507