Issue Type: Bug Bug
Assignee: Thomas E Enebo
Components: Standard Library
Created: 22/Jul/13 5:26 AM
Description:
>> ::Socket.new(::Socket::AF_INET, ::Socket::SOCK_STREAM, ::Socket::IPPROTO_TCP)
ArgumentError: unsupported protocol family `__UNKNOWN_CONSTANT__'
        from org/jruby/ext/socket/RubySocket.java:185:in `initialize'
        from org/jruby/RubyIO.java:856:in `new'
        from (irb):20:in `evaluate'
        from org/jruby/RubyKernel.java:1093:in `eval'
        from org/jruby/RubyKernel.java:1489:in `loop'
        from org/jruby/RubyKernel.java:1254:in `catch'
        from org/jruby/RubyKernel.java:1254:in `catch'

Using 0 instead is a workaround:

>> ::Socket.new(::Socket::AF_INET, ::Socket::SOCK_STREAM, 0)
=> #<Socket:fd 76>
Environment: jruby 1.7.4 (1.9.3p392) 2013-05-16 2390d3b on Java HotSpot(TM) 64-Bit Server VM 1.6.0_45-b06 [linux-amd64]
Project: JRuby
Priority: Major Major
Reporter: James Lee
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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