Resolv.getaddress is broken on OSX 1.5
--------------------------------------

                 Key: JRUBY-3849
                 URL: http://jira.codehaus.org/browse/JRUBY-3849
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.3.1
         Environment: OSX Leopard
            Reporter: Aman Gupta


fine on linux:
{noformat}
$ jruby -v        
jruby 1.3.1 (ruby 1.8.6p287) (2009-06-15 2fd6c3d) (Java HotSpot(TM) 64-Bit 
Server VM 1.5.0_17) [amd64-java]

$ jruby -rresolv -e' p Resolv.getaddress("google.com") '
"74.125.45.100"
{noformat}

broken on osx:
{noformat}
$ jruby -v
jruby 1.4.0dev (ruby 1.8.6p287) (2009-08-03 6586) (Java HotSpot(TM) Client VM 
1.5.0_19) [i386-java]

$ jruby -rresolv -e' p Resolv.getaddress("google.com") '
/custom/jruby/lib/ruby/1.8/resolv.rb:582:in `bind_random_port': closed stream 
(IOError)
        from /custom/jruby/lib/ruby/1.8/resolv.rb:680:in `initialize'
        from /custom/jruby/lib/ruby/1.8/resolv.rb:492:in `new'
        from /custom/jruby/lib/ruby/1.8/resolv.rb:492:in `make_requester'
        from /custom/jruby/lib/ruby/1.8/resolv.rb:463:in `each_resource'
        from /custom/jruby/lib/ruby/1.8/resolv.rb:422:in `each_address'
        from /custom/jruby/lib/ruby/1.8/resolv.rb:249:in `each_address'
        from /custom/jruby/lib/ruby/1.8/resolv.rb:248:in `each'
        from /custom/jruby/lib/ruby/1.8/resolv.rb:248:in `each_address'
        from /custom/jruby/lib/ruby/1.8/resolv.rb:232:in `getaddress'
        from /custom/jruby/lib/ruby/1.8/resolv.rb:204:in `getaddress'

$ jruby -rresolv-replace -e' p Resolv.getaddress("google.com") '
/custom/jruby/lib/ruby/1.8/resolv-replace.rb:27:in `bind': closed stream 
(IOError)
{noformat}

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