-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Comms: simplify timeout handling (#9)
The previous solution for handling timeouts was more complex than it needed to be, relying on a `boost::asio::deadline_timer` and `async_wait()`. This can be simplified quite a bit to just calling `run_for()` on the IO context, which will also detect whether the operation timed out (i.e., didn't complete before the time limit was reached).
- Loading branch information
Showing
4 changed files
with
89 additions
and
172 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
Oops, something went wrong.