phatboyg/MassTransit — pull request #70 by wuhqureshi (2012-07-07 19:36:11+00:00)
Title: Review changes for reconnection logic 

Hi, related to this topic on the google goup,

https://groups.google.com/forum/#!topic/masstransit-discuss/qeTLRgeVEs8

We've had these recent changes running in testing + production for over a month now and we've seen no lost messages, and it fixes the issue with the second message being sent twice on reconnect. It would be good to get this in the main github repo, or some feedback on how it could be improved if it doesn't make the cut. The use of ReaderWriterLockSlim is to ensure that if several threads are trying to reconnect we don't get race conditions.

I've also added in a bit of logging to indicate when a retry occurrs.

Thanks
Wazz