connamara/quickfixn — pull request #259 by jacsuper (2014-04-11 09:41:34+00:00)
Title: SessionState.Store (FileStore) is not threadsafe on .Set and .Get

During a resendrequest - a .Get is done on the SessionState.Store. This
get is not synchronized with .Set calls done on sending messages.

If sending a message is initiated concurrently garbled or incorrect message data can
be read from the store and sent. An IOException can also occur - because of the global file object used.

This pull request includes a unit test and suggested lock.

Associated with Issue below:

https://github.com/connamara/quickfixn/issues/258