stephane/libmodbus — Issue #43: Long connect timeout if TCP device is down.
Author: aabella
Created: 2011-12-23 11:30:29+00:00
State: open

If a Modbus TCP device or a Modbus TCP gateway is down, the timeout is too long. With down, i mean that the device could be off, broken, inaccesible due to a network problem... I compiled the library on Windows with MinGW and CodeBlocks. I've an Ubuntu development environment too, and the problem is the same.

I modified the code to include a timeout for the connection function, as it exists in the response function. It's working in my Modbus TCP network now without any known problem.

I am not used to github so i don't know hoy to contribute the modified code to be evaluated.
Could someone help me to contribute the changes?