cmpt431-rainbow/Protocol — pull request #10 by elElmo (2012-02-29 20:54:40+00:00)
Title: Message sending is now thread-safe and asynchronously

We kind of derped in our outbound message sending. Previously, a thread would be blocked until the send is complete (ie until outstream.println has succesfully completed). This is obviously bad and could be worse depending on the load of the controller. There was also a threading issue.

This has been resolved by using a separate mailer thread which takes messages out of the outbound queue and transmits them. The only wait time is the time it takes to put a message into the outbound queue.