stubborn-io
stubborn-io copied to clipboard
io traits/structs for tokio that automatically recover from potential disconnections/interruptions
It would be useful to have the error/info messages show the peer's information in the message to help diagnostics. Something like: ```[INFO] - Will re-perform initial connect attempt #1 to...
Invoking methods such as `try_read` from a `StubbornTcpStream`, which is possible thanks to the `Deref` implementation that the `StubbornIo` struct provides, allows doing I/O while skipping the stubborn I/O logic...
The aforementioned methods are copied and pasted and share almost the same exact code. It should be slightly refactored to share a single codepath, to avoid potential errors in the...
I wasn't able to reproduce the problem mentioned in #29, but maybe it's worth adding this successful test anyway.
Currently I support the following: 1. Attempt to reconnect at startup until a success finally happens 2. Fail immediately if first connection fails This issue is to extend 1. The...
I can't use the provided tcp stream wrapper since i need to send some custom data immediately after reconnection happens. I tried to follow the examples and implement the trait:...