Skip to content

Conversation

@johnmiko
Copy link
Contributor

@johnmiko johnmiko commented Mar 21, 2024

It's possible when using a Modbus TCP connection that the connection is unexpectedly closed while writing to a register. This raises a ConnectionException that is not caught in the existing catch statement.

Note: The retry is done in the retry_on_empty catch

It's possible that this type of exception should not be caught, and should instead raise an error as the connection should not close unexpectedly. If I misunderstood, feel free to decline the pull request

Copy link
Collaborator

@janiversen janiversen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

@janiversen janiversen merged commit 9c2c874 into pymodbus-dev:dev Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants