AsyncSerialClient: Are request retries implemented? #1506
-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Depends on the version. It is implemented for all async clients on v3.2 but we are currently refactoring the async client make it better |
Beta Was this translation helpful? Give feedback.
-
I was wondering if you have misunderstood how retry works. It is a send retry, which means it will try to resend the message until it is successfully sent or retries have been reached, this has nothing to do with what we receive. I suspect what you want is something like a transaction_retry, the retries until a response is recieved, but that is something we cannot do in the library, because some write_commands might be dangerous to repeat (e.g. a step_up command) and cause potentially dangerous situations. In your application you know if it is safe to repeat the command. |
Beta Was this translation helpful? Give feedback.
I was wondering if you have misunderstood how retry works. It is a send retry, which means it will try to resend the message until it is successfully sent or retries have been reached, this has nothing to do with what we receive.
I suspect what you want is something like a transaction_retry, the retries until a response is recieved, but that is something we cannot do in the library, because some write_commands might be dangerous to repeat (e.g. a step_up command) and cause potentially dangerous situations. In your application you know if it is safe to repeat the command.