Skip to content
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

osc-ruby socket error after a certian amount of messages #11

Open
maximillion90 opened this issue Apr 20, 2014 · 2 comments
Open

osc-ruby socket error after a certian amount of messages #11

maximillion90 opened this issue Apr 20, 2014 · 2 comments

Comments

@maximillion90
Copy link

I have a script which sends osc messages to a server repeatedly, if i run it on jruby or using ruby-osc instead it functions but when i run it with standard ruby and osc-ruby (2.0.0 and 1.9.2 tested) it will give the following error after a few minutes. the socket information is the same each time and works for a while.
`connect': getaddrinfo: nodename nor servname provided, or not known (SocketError)

I've attached the send method for reference.
Can anyone shed any light?

def msg_send(message, channel, argu)
@client = Client.new("localhost", 10002)
@client.send Message.new("#{message}#{channel}", argu)
# puts "#{message}#{channel}", argu
end

@aberant
Copy link
Owner

aberant commented Apr 20, 2014

Thanks for letting me know about your issue. I'll look into this, but i just bought a house and will be busy with that for a few more weeks.

That error message would lead me to believe that there's an issue with DNS resolution. Can you run an experiment where you send messages to the same server, but reference it by IP instead of hostname?

please let me know what you discover

@maximillion90
Copy link
Author

Yeah ill give it a go, so change the "localhost" to 127.0.0.1, i can also run it on an external connection if necessary.

I changed the the hostname from "localhost" to "127.0.0.1" and it lasted longer but still gave the same error eventually.

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

No branches or pull requests

2 participants