Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
EHOSTUNREACH when a FTP connection cannot be established #5754
Is it possible to make the error convey that the remote host is unavailable or unreachable like MRI does with
I think that
I looked at #5709 (comment) and wonder if it is even possible to raise a
Please feel free to close this if this cannot be considered an issue with JRuby.
The proper error does get raised, but then the logic in socket.rb attempts to close the not-quite-established connection and raises EBADF.
Tweaking the logic to not raise EBADF and show the intermediate errors exposes a further problem, however: we are not picking the right exception type for these errors. The first two here are the exceptions live near the
These two errors should be ETIMEDOUT and EHOSTUNREACH.