TCPSocket raises Errno::ECONNREFUSED instead of Errno::EHOSTUNREACH
-------------------------------------------------------------------
Key: JRUBY-4966
URL: http://jira.codehaus.org/browse/JRUBY-4966
Project: JRuby
Issue Type: Bug
Components: Standard Library
Affects Versions: JRuby 1.5.1
Environment: jruby 1.5.1, Ubuntu 9.10
Reporter: Jesús GS
Assignee: Thomas E Enebo
Priority: Minor
This explain it very clear:
{code}
$ jirb
irb(main):001:0> require 'socket'
=> true
irb(main):002:0> TCPSocket.new "192.168.45.69", 22
Errno::ECONNREFUSED: Connection refused - Connection refused
from (irb):2:in `initialize'
from (irb):2:in `new'
from (irb):2
$ irb
>> require 'socket'
=> false
>> TCPSocket.new "192.168.45.69" , 22
Errno::EHOSTUNREACH: No route to host - connect(2)
from (irb):2:in `initialize'
from (irb):2:in `new'
from (irb):2
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email