Skip to content

Client - Server application, simultaneous communications results in read_holding_registers not returning #2164

Closed Locked Answered by janiversen
Ducati748ss asked this question in Help
Discussion options

You must be logged in to vote

You do not write which version you use, V3.6.8 have locking builtin for async clients. BUT is works only if the calls are within the same asyncio loop ! If you need multiple loops, then you need to add your own locking.

I cannot see any problems in the log file ?? And having multiple clients means having 2 independent sockets each with their own transport object, so that should not cause problems.

A number of our test cases, starts a server and a client in the same process to communicate, so it clearly possible.

your code looks ok, but there are a number of, lets say not standard usages.

The reconnect_delay is far too low for practical purpose, and you prohibit the automatic reconnect, wh…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Ducati748ss
Comment options

You must be logged in to vote
0 replies
Comment options

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