-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Converting the socket write queue to an atomic number since strands already ensure non-concurrent execution. * Moving responsibility for message drop policy in to tcp channel, rather than in the socket class itself. Having the socket class handle the limiter drop policy is a layering violation where the socket class knows about specific usages by its clients. This simplifies the socket class to be a more light weight wrapper around raw TCP sockets and reduces complexity. * Making max value a static constexpr. * Removing boost::optional for io_timeout as it's unnecessary. * With io_timeout being atomic it can be set without strand synchronization. Co-authored-by: Sergey Kroshnin <[email protected]> Co-authored-by: Thiago Silva <[email protected]>
- Loading branch information
1 parent
e8bf333
commit b3f6f27
Showing
5 changed files
with
25 additions
and
31 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
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