Ensuring client connection gets closed on exceptions
Closed this issue · 5 comments
alberto commented
If I open the connection with a block and raise an exception inside, the connection doesn't close properly, preventing subsequent attempts to connect. Is this a bug or I am supposed to be controlling this myself?
atimin commented
I'm sure that is no serious bug. But I will fix it when I have time. Thanks for report!
atimin commented
Done! Thanks and update gem!
alberto commented
Thank you for your gem. :) I couldn't be doing my project in ruby without it.
atimin commented
Tell me please if you will publish your project. I'm very interested there using rmodbus.
alberto commented
It's not a public project (still in the making, and login is required anyway) and I'm afraid I can't disclose the details. But I can tell you it will (hopefully) be used to talk to hundreds-to-thousands of devices.