Skip to content

Close device connections and improve timeout handling #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mazurdo
Copy link

@mazurdo mazurdo commented Jul 19, 2015

The new RubyItachIp2ir::Device#close method allows closing the underlying socket after finishing with the device. This fixed some issues we found where our device stopped listening for connections after sending 9-10 consecutive commands.

RubyItachIp2ir::Device#connect now allows passing a timeout and uses the non-blocking approach from http://spin.atomicobject.com/2013/09/30/socket-connection-timeout-ruby/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant