Closed maxgr0 closed 4 months ago
Yep, open to PRs for this! We could add something like a CancellationToken that could be used to halt the whole HostClient machinery if the wire interface fails.
Yep, open to PRs for this! We could add something like a CancellationToken that could be used to halt the whole HostClient machinery if the wire interface fails.
Good idea! Another quite simple solution could be to not stop the workers when an error comes but rather wait for x seconds and then try again to receive/send something? Timeout is anyways up to the user from what I've read in the code so this would make the behavior quite consistent and we would even not need a CancellationToken
. Wdyt?
Currently, the application needs to be pretty much restarted when the MCU disconnects while the app is running:
If still sending a request to the MCU using e.g.
client.send_resp
, it does not fail directly when the MCU is disconnected rather waits forever.Are there any (recommended) ways to recover from this case? Some ideas I've had:
HostClient
creation to be notified for a disconnectionInputWorker
/OutputWorker