-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Execute socket->read() inside TcpSession client code protected by mutex
Instead of letting read happen in boost asio library in the thread which runs the even, defer actual socket read call to TcpSsession (Or SslSession) code which is (already) protected by mutex. This ensures that socket read and write never happens in parallel. This is a requirement as boost::asio library is not thread safe per-se for parallel reads/writes over the same asio socket Change-Id: I25cc6b149d26579c1eb1f75965227135c26834e7 Closes-Bug: 1608731
- Loading branch information
1 parent
c8b3333
commit 7853e1c
Showing
4 changed files
with
44 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters