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

RubyUDPSocket swallows exceptions #455

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

RubyUDPSocket swallows exceptions #455

jagregory opened this issue Dec 19, 2012 · 2 comments
Labels
Milestone

Comments

@jagregory
Copy link

@jagregory jagregory commented Dec 19, 2012

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
Copy link
Member

@headius 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
Copy link
Member

@kares 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.