DarthFubuMVC/FubuMVC.ServerSentEvents — pull request #4 by mtscout6 (2012-07-12 16:34:19+00:00)
Title: Fixed potential race condition.

The lock in Channel is intended to keep events and outstanding requests in sync. The problem is that if you read the event stream in one read lock and then add to outstanding requests in another, then you could potentially end up not sending a new event to the client until another event is sent later on. This is incredibly difficult to test without some kind of load test, which I have not added. We should look into adding some kind of unit load tests in the future to account for situations like these.