ModbusSocketFramer bug when multiple modbus messages are received in 1 tcp payload
ModbusSocketFramer bug when multiple modbus messages are received in 1 tcp payload: a task in swe-rebench-v2.1-rl-isolated-1k: SWE-rebench V2.1 RL, isolated grading (1k subset) (Harbor dataset). When receiving multiple modbus frames in a single tcp frame, pymodbus throws an error. This happens…
The task
When receiving multiple modbus frames in a single tcp frame, pymodbus throws an error. This happens cause of a misscalculation. [HIDDEN] This doesn't happen when there is only 1 modbus packet inside a TCP frame cause in python `my_list[:length] == my_list[:length+1]` is True.