RubyUDPSocket swallows exceptions #455

Closed
jagregory opened this Issue Dec 19, 2012 · 2 comments

Comments

Projects
None yet
3 participants
@jagregory

The RubyUDPSocket implementation swallows exceptions that're raised. For example: line 318.

In my case I was getting Errno::ECONNREFUSED: Connection refused - send(2) exceptions raised, but I couldn't see that in JRuby. I had to switch to MRI to see it.

I'm happy to provide a patch if someone can recommend the best way to raise the exception (I don't know if there's any conventions for doing this).

@headius

This comment has been minimized.

Show comment
Hide comment
@headius

headius Dec 19, 2012

Member

I think we might have to poke at this to get it right. In general, we have to do some kinda ugly hacks to simulate errno exceptions.

I'll try to reproduce, but perhaps you can provide an example that causes the wrong error?

Member

headius commented Dec 19, 2012

I think we might have to poke at this to get it right. In general, we have to do some kinda ugly hacks to simulate errno exceptions.

I'll try to reproduce, but perhaps you can provide an example that causes the wrong error?

@kares

This comment has been minimized.

Show comment
Hide comment
@kares

kares Jan 10, 2016

Member

has been redone lately and should work fine on >= 9.0.5.0

Member

kares commented Jan 10, 2016

has been redone lately and should work fine on >= 9.0.5.0

@kares kares closed this Jan 10, 2016

@kares kares added this to the JRuby 9.0.5.0 milestone Jan 10, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment