Conversation
|
@andig thanks for the hint, but currently we define multiple clients if used concurrently (though not over serial line) and are not planning to change this as of now. |
|
OT: multiple clients sharing the same underlying network connection to the same modbus server? |
|
@andig the code is here. You can define multiple requests in a plugin instance, those will be done sequentially. Additionally it is possible to have multiple of those plugins running concurrently and then they share nothing, i.e. each instance will open an own connection to the configured endpoint. We can chat on out slack if you are interested in more details to avoid cluttering this PR... ;-) |
|
@andig is there anything I should do in this commit to get this merged? |
|
I can‘t speak for @grid-x, sorry |
|
@hsteidl anything I can do to get this merged? |
hnicolaysen
left a comment
There was a problem hiding this comment.
Good catch! The test fix looks good to me. Thanks for sharing!
Running
go test -v -racewill report two races, one forTestSerialCloseIdleand one forTestTCPTransporter(see excerpt below). This PR fixes the races in both tests.and