Fix a bug Arthur reported. Some critical Peer structures are not protected

against races caused by concurrent reading from and writing to the SSL
connection and access to Peer variables like mDetaching, mSendingPacket, and
so on.
This commit is contained in:
JoelKatz
2013-01-11 11:53:37 -08:00
parent ef9a0f3ed3
commit 7d7d2bc46b
2 changed files with 21 additions and 1 deletions

View File

@@ -58,6 +58,7 @@ private:
protected:
boost::recursive_mutex ioMutex;
std::vector<uint8_t> mReadbuf;
std::list<PackedMessage::pointer> mSendQ;
PackedMessage::pointer mSendingPacket;