Fix race condition: track sent items, rather than unsent items, so that a `send` operation that overlaps with processing of the transmit queue doesn't hang indefinitely.
Run receive prior to transmit.
Merge pull request #1 from browndav/master

Pull Request: June 17th, 2013