rmodbus/rmodbus

Ensuring client connection gets closed on exceptions

Closed this issue · 5 comments

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?

I'm sure that is no serious bug. But I will fix it when I have time. Thanks for report!

Done! Thanks and update gem!

Thank you for your gem. :) I couldn't be doing my project in ruby without it.

Tell me please if you will publish your project. I'm very interested there using rmodbus.

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.