harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ray Chen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6360) [classlib][luni]SocketTest and UnixSocketTest failed on AIX, because AIX do NOT support connect to port 0
Date Thu, 22 Oct 2009 14:42:59 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12768694#action_12768694

Ray Chen commented on HARMONY-6360:

Hi Oli,

This is the description copied from the Spec for the socket
construction -"Creates
a socket and connects it to the specified port number at the specified IP

So here, it is server's IP and port, not local. In C it might be like
connect(ip, port ,len)

But in ServerSocket(0), it is also server's, but it is local port.
In C it might be like socket(family,port,...)

So this two sockets' role are different.


Ray Chen

> [classlib][luni]SocketTest and UnixSocketTest failed on AIX, because AIX do NOT support
connect to port 0
> ---------------------------------------------------------------------------------------------------------
>                 Key: HARMONY-6360
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6360
>             Project: Harmony
>          Issue Type: Test
>          Components: Classlib
>         Environment: AIX
>            Reporter: Ray Chen
>            Assignee: Oliver Deakin
>            Priority: Minor
>         Attachments: 6360.diff, 6360_v2.diff
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
> SocketTest failed on AIX at the statement "Socket s = new Socket("", 0, false);"
which create a socket in local and connect to IP address and port specified (, which
in turn actually connect to (machineIP:0) in PlainSocketImpl.java
> However AIX and some other Unix platform do NOT support connect to port 0.
> If you try to connect to your mahchine with port 0 in C program will get EADDRNOTAVAIL
error on AIX and zos but it works well on Linux.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message