Closed GoogleCodeExporter closed 8 years ago
It seems to be a socket issue. Maybe, there is something wrong in the way we
use it. Did you try to simulate something similar with just the socket lib?
Original comment by luc.jean@gmail.com
on 3 Sep 2013 at 9:17
Hi - I didn't but I will try
Original comment by nicholas...@gmail.com
on 6 Sep 2013 at 6:03
It seems like the socket library does this anyway - so it is an issue with
the library - I tried setting the socket options to reuse the address but
it doesn't solve this particular problem.
Original comment by nicholas...@gmail.com
on 10 Sep 2013 at 4:23
Hi -
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
helps with the address in use error that sometimes is thrown up - might
also help with the disconnect issue.
Original comment by nicholas...@gmail.com
on 12 Sep 2013 at 7:05
Hi,
Thanks for feedback. I'll look at it in next version.
Meanwhile, you should be able to force this option on the socket in the
modbus_tcp.TcpMaster.before_connect hook.
Original comment by luc.jean@gmail.com
on 13 Sep 2013 at 8:02
Fixed on github
Original comment by luc.jean@gmail.com
on 29 Apr 2015 at 9:42
Original issue reported on code.google.com by
nicholas...@gmail.com
on 2 Sep 2013 at 9:30