Skip to content

Thread safety of client #2662

Answered by janiversen
justbaominh asked this question in Help
Discussion options

You must be logged in to vote

It means what it says, you cannot have 2 threads each calling the same client object without some sort of lock.

pymodbus do have a locks in place to prevent 2 calls from running simultaneously, but that can easily cause a dead-lock situation in the app code... hence this "safety statement".

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by janiversen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants