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

Improve error handling in network functions #157

Open
4 tasks
TomasTurina opened this issue Sep 13, 2024 · 0 comments
Open
4 tasks

Improve error handling in network functions #157

TomasTurina opened this issue Sep 13, 2024 · 0 comments
Labels

Comments

@TomasTurina
Copy link
Member

Description

As part of the development of the communicator component of the new agent, we chose to use boost asio/beast as our networking library, which also works with C++20 coroutines.

The first implementation is missing to check for many network errors that can occur during communication. Currently, any failure is not reported correctly and no recovery attempt is made, so we need to improve error handling.

Tasks to be done:

  • Ensure that all functions that use the Boost networking library are within the HTTPClient class.
  • Identify functions within the HTTPClient class that do not have error handling.
  • Apply changes to improve error handling.
  • Ensure that components that use the HTTPClient class (i.e. Communicator) are properly handling network errors/exceptions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant