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 Tue, 20 Oct 2009 16:03:59 GMT

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

Ray Chen commented on HARMONY-6360:
-----------------------------------

Hi Oli,

Actually, I think the port is not important.

When excute the original statement "Socket s = new Socket("0.0.0.0", 0,
false);", there is no server at all.  If port 0 used in socket() function,
it means got a free port, and if port 0 used in connect() on Linux platform,
it means connect to any listening port of the address (your local machine
address here).

However, AIX and many other Unix platform didn't support port 0 used in
connect() function.

Since you have questions about this, I think the code is a little bit
confusing, maybe I should add some comments, right?




-- 
Regards,

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
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> SocketTest failed on AIX at the statement "Socket s = new Socket("0.0.0.0", 0, false);"
which create a socket in local and connect to IP address and port specified (0.0.0.0:0), 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.


Mime
View raw message