steveohara / j2mod

Enhanced Modbus library implemented in the Java programming language
Apache License 2.0
267 stars 111 forks source link

Setting timeout of TCPMaster does not get applied to transactions #41

Closed SElyPer closed 7 years ago

SElyPer commented 7 years ago

ModBusTCPTransport does not receive the timeout from the ModbusTCPMaster

To reproduce: Set the timeout on the ModbusTCPMaster to 30000 Make a request to readMultipleRegisters

The transaction timeout is back to the default of 3000 Also, when the connection fails and is re-established the timeouts for the transaction are also reverted to the default of 3000

steveohara commented 7 years ago

Pushed the timeout down to the transport whenever a transaction is executed