UDPSocket#recvfrom raises wrong error
-------------------------------------

                 Key: JRUBY-4896
                 URL: http://jira.codehaus.org/browse/JRUBY-4896
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.5.1
         Environment: JRuby 1.5.1, OS X (Tiger) and Windows Vista
            Reporter: Daniel Berger


The following code sample raises an Errno in MRI, but a SocketError in JRuby:
{noformat}
# Errno::ECONNREFUSED (MRI, Unix) or Errno::ECONNRESET (MRI, Windows) vs 
SocketError (Jruby)

require 'socket'
udp = UDPSocket.open
udp.connect('127.0.0.1', 7)
udp.send('ping', 0)
array = udp.recvfrom(64) 
{noformat}
Whether or not they should raise the same Errno regardless of platform is up 
for debate. :)

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


Reply via email to