Skip to content

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

Open

Description

@maximillion90

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

Activity

  1. aberant commented on Apr 20, 2014

    @aberant
    Owner

    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

  2. maximillion90 commented on Apr 20, 2014

    @maximillion90
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions