We have to dispatch RPCServer operations onto a strand, otherwise

an error while both a read and write are pending can crash.
This commit is contained in:
JoelKatz
2013-06-15 01:28:18 -07:00
parent 5e3cac1808
commit 3c44019e01
2 changed files with 8 additions and 7 deletions

View File

@@ -16,6 +16,7 @@ private:
NetworkOPs* mNetOps;
AutoSocket mSocket;
boost::asio::io_service::strand mStrand;
boost::asio::streambuf mLineBuffer;
Blob mQueryVec;