Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comms: simplify timeout handling #9

Merged
merged 4 commits into from
Jan 24, 2025
Merged

Comms: simplify timeout handling #9

merged 4 commits into from
Jan 24, 2025

Conversation

willeccles
Copy link
Member

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).

@willeccles willeccles added the enhancement New feature or request label Jan 24, 2025
@willeccles willeccles merged commit 4dd8fdd into main Jan 24, 2025
4 checks passed
@willeccles willeccles deleted the simplify-timeouts branch January 24, 2025 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant