Commit 24c0ffc
committed
Close connection on no/erroneous message received
Always close connection on no response/error response from modbus
unit. This attempts to resolve issue #538, where the response of a
previously timed out request over synchronized TCP is being returned
as the response to the current request, by leaving the connection open
only if there is no unanswered response.
This commit only touches the code for synchronized clients, and only
seeks to resolve it for TCP based clients, though the situation for
UDP clients should improve as well.1 parent 870be43 commit 24c0ffc
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
203 | 204 | | |
204 | 205 | | |
205 | 206 | | |
| |||
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
| 213 | + | |
212 | 214 | | |
213 | 215 | | |
214 | 216 | | |
| |||
0 commit comments