Socket::getaddrinfo() returns incorrect data on solaris
-------------------------------------------------------
Key: JRUBY-3937
URL: http://jira.codehaus.org/browse/JRUBY-3937
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.3.1
Environment: OpenSolaris 2009.06
Reporter: Wayne Meissner
Assignee: Thomas E Enebo
Fix For: JRuby 1.4
"ant test" fails on master with the following error:
[junit] Testsuite: org.jruby.test.ScriptTestSuite
[junit] FAILED 19 expected [["AF_INET", 80, "0.0.0.0", "0.0.0.0", 2, 1,
6]], found [["AF_INET", 80, "0.0.0.0", "0.0.0.0", 2, 1, 17]]--
./test/testSocket.rb:138
This is due to RubySocket.getaddrinfo() using hard-coded BSD constants for
SOCK_STREAM and SOCK_DGRAM when deciding how to construct the return value.
This was probably ok in earlier releases, since all constants were based on
BSD/MacOS values, but once we started using constantine to use real platform
values, the values no longer match.
--
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