Commit a1d00bf
committed
Return exception response for READ EXCEPTION STATUS (0x07)
The server was silently dropping requests with function code 0x07,
returning -1 with errno ENOPROTOOPT and sending nothing back to the
client. This violates the Modbus specification which requires a response
for every valid request.
Now returns ILLEGAL_FUNCTION exception, which is the correct response
for an unimplemented function code.
Closes #8131 parent e5cee8b commit a1d00bf
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1086 | 1086 | | |
1087 | 1087 | | |
1088 | 1088 | | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
1092 | | - | |
1093 | | - | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
1094 | 1095 | | |
1095 | 1096 | | |
1096 | 1097 | | |
| |||
0 commit comments